summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/filters/filter-blur-clamping.yaml
blob: 0d81a616ee94b1a158e8dbd425096d96de19214b (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
# Ensures that blur clamping happens after scale factors are applied
---
root:
  items:
    - type: stacking-context
      bounds: [100, 100, 300, 300]
      transform: scale(10)
      items:
      - type: stacking-context
        bounds: [0, 0, 300, 300]
        # Blur will be 20 * 10(scale) = 200 and it should then be clamped to 100
        filters: blur(20, 20)
        items:
        - type: rect
          bounds: [0, 0, 10, 10]
          color: 0 255 0 1.0
    - type: stacking-context
      bounds: [400, 100, 300, 300]
      transform: scale(0.1)
      items:
      - type: stacking-context
        bounds: [0, 0, 300, 300]
        # Blur should be 500 * 0.1(scale) = 50. This tests to make sure clamping
        # does not occur before applying scale factors, otherwise 500 would be
        # clamped to 100.
        filters: blur(500, 500)
        items:
        - type: rect
          bounds: [0, 0, 1000, 1000]
          color: 255 0 0 1.0