Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/gfx/wr/wrench/reftests/image/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  snapshot-shadow.yaml   Sprache: unbekannt

 
Spracherkennung für: .yaml vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

# This test case contains a row of simple snapshotted stacking
# contexts with drop shadows on them. Their snapshots are rendered
# as images in a second row. The second row should look identical
# to the first.
---
root:
  items:
  - type: stacking-context
    bounds: [10, 10, 200, 200]
    filters: drop-shadow([0, 0], 10, black)
    snapshot:
      name: "snap0"
      area: [-50, -50, 200, 200]
    items:
      - type: rect
        bounds: [10, 10, 80, 80]
        color: [0, 150, 0]
      - type: rect
        bounds: [5, 5, 40, 40]
        color: [200, 0, 0]

  - type: stacking-context
    bounds: [110, 10, 200, 200]
    filters: drop-shadow([5, 5], 0, red)
    snapshot:
      name: "snap1"
      area: [-50, -50, 200, 200]
    items:
      - type: rect
        bounds: [10, 10, 80, 80]
        color: [0, 150, 0]
      - type: rect
        bounds: [5, 5, 40, 40]
        color: [200, 0, 0]

  - type: stacking-context
    bounds: [210, 10, 200, 200]
    filters:
      - drop-shadow([4, 4], 4, red)
      - drop-shadow([6, 6], 4, green)
      - drop-shadow([8, 8], 4, blue)
    snapshot:
      name: "snap2"
      area: [-50, -50, 200, 200]
    items:
      - type: rect
        bounds: [10, 10, 80, 80]
        color: [0, 150, 0]
      - type: rect
        bounds: [5, 5, 40, 40]
        color: [200, 0, 0]

  - type: stacking-context
    bounds: [10, 110, 2000, 200]
    items:
    - image: snapshot(snap0)
      bounds: [-50, -50, 200, 200]
    - image: snapshot(snap1)
      bounds: [50, -50, 200, 200]
    - image: snapshot(snap2)
      bounds: [150, -50, 200, 200]

[ Dauer der Verarbeitung: 0.41 Sekunden  ]