backface-flatten.yaml (1050B)
1 # In this test, there is a flattened ref frame between an element 2 # and the picture it's rendered into. The element should be considered 3 # invisible as it's back face oriented at this flattening step. 4 # If WR only checks the "final" transform, it will consider it visible. 5 6 --- 7 root: 8 transform: rotate-x(1) 9 items: 10 - type: stacking-context 11 transform-style: preserve-3d 12 #transform: rotate-x(1) 13 items: 14 - type: stacking-context 15 bounds: 0 0 200 200 16 transform: rotate-y(30) 17 transform-style: flat 18 items: 19 - type: stacking-context 20 bounds: 0 0 200 200 21 transform: rotate-y(-100) 22 transform-style: preserve-3d 23 items: 24 - type: stacking-context 25 #transform: rotate-x(1) 26 transform-style: flat 27 items: 28 - type: rect 29 bounds: 0 0 200 200 30 color: green 31 backface-visible: false