radial-negative-scale-ninepatch.yaml (981B)
1 # This test contains a radial gradient with rounded corners. 2 # The primitive is large enough to exercise the quad nine-patch 3 # code path. 4 # The primitive has a negative scale applied to it. The goal 5 # of this test is to check that the fiddly coordinate space 6 # handling of decomposed quads properly handles transforms that 7 # can flip primitives. 8 --- 9 root: 10 items: 11 - type: stacking-context 12 transform: scale-x(-1) 13 items: 14 - type: clip 15 id: 5 16 complex: 17 - rect: [-300, 0, 300, 300] 18 radius: 50 19 # A white square (that doesn't contribute to the output) 20 # to make sure that the clip is not lifted to the picture 21 # containing gradient primitive. 22 - type: rect 23 bounds: 10 10 10 10 24 color: white 25 - type: radial-gradient 26 bounds: -300 0 300 300 27 center: 0 0 28 radius: 500 600 29 stops: [0.0, red, 1.0, blue] 30 clip-chain: [5]