clip-45-degree-rotation.yaml (936B)
1 # Test that transformed content is clipped properly by clips with a different transform. 2 --- 3 root: 4 items: 5 - 6 bounds: [0, 0, 0, 0] 7 "clip-rect": [0, 0, 0, 0] 8 type: "stacking-context" 9 transform: rotate(-45) translate(200, 0) 10 items: 11 - 12 bounds: [0, 0, 300, 300] 13 "clip-rect": [0, 0, 300, 300] 14 type: rect 15 color: red 16 - 17 bounds: [0, 0, 300, 300] 18 "clip-rect": [0, 0, 300, 300] 19 type: clip 20 id: 5 21 - type: clip-chain 22 id: 10 23 clips: [5] 24 - 25 bounds: [0, 0, 0, 0] 26 "clip-rect": [0, 0, 0, 0] 27 type: "stacking-context" 28 transform: rotate(45) translate(-300, 0) 29 clip-chain: 10 30 items: 31 - 32 bounds: [0, 0, 1598, 1200] 33 "clip-rect": [0, 0, 1598, 1200] 34 type: rect 35 color: green