summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/filters/filter-drop-shadow-clip-3.yaml
blob: 4b9ad3d36ebd1bc84986af42770ef90b0f6f3eed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
# WebRender internally clips the stacking context to avoid
# rendering parts that are off-screen. It has to take shadow
# offsets into account.
# This test introduces a 90 degrees rotation to ensure that
# the clip inflation isn't done in the wrong space.
root:
  items:
    # Rotation inside of the shadowed stacking context.
    - type: stacking-context
      bounds: [0, -10, 200, 100]
      filters: drop-shadow([-10, 200], 5, red)
      items:
      - type: stacking-context
        bounds: [50, -10, 200, 100]
        transform: rotate-z(-90)
        items:
        -
          bounds: [0, 0, 500, 150]
          glyphs: [55, 75, 76, 86]
          offsets: [0, 100, 75, 100, 150, 100, 180, 100]
          size: 90
          color: blue
          font: "../text/VeraBd.ttf"
    # Rotation applied to the shadowed stacking context directly.
    - type: stacking-context
      bounds: [150, 35, 200, 100]
      filters: drop-shadow([200, 10], 5, red)
      transform: rotate-z(-90)
      items:
      -
        bounds: [0, 0, 500, 150]
        glyphs: [55, 75, 76, 86]
        offsets: [0, 100, 75, 100, 150, 100, 180, 100]
        size: 90
        color: blue
        font: "../text/VeraBd.ttf"