37 <!-- This test checks various configurations of backface visibility when there is no 3d
38 rendering context (i.e. no layer preserves-3d). -->
40 <!-- No back faces are visible, so we should see the lime div inside the blue narrow div
41 inside the green div. -->
42 <div id=
"testCase1" style=
"background-color: green">
43 <div style=
"background-color: blue; -webkit-backface-visibility: hidden; transform: rotateY(80deg)">
44 <div style=
"background-color: lime; -webkit-backface-visibility: hidden; transform: rotateX(80deg)">
49 <!-- The lime div has its back facing, so we should see only the blue strip inside the
51 <div id=
"testCase2" style=
"background-color: green">
52 <div style=
"background-color: blue; -webkit-backface-visibility: hidden; transform: rotateY(80deg)">
53 <div style=
"background-color: lime; -webkit-backface-visibility: hidden; transform: rotateX(100deg)">
58 <!-- The blue div should not be visible, but the lime div should be visible, because the
59 W3C spec says that without a 3d context that they should use their own local
61 <div id=
"testCase3" style=
"background-color: green">
62 <div style=
"background-color: blue; -webkit-backface-visibility: hidden; transform: rotateY(100deg)">
63 <div style=
"background-color: lime; -webkit-backface-visibility: hidden; transform: rotateX(80deg)">
68 <!-- Only the green div should be visible. -->
69 <div id=
"testCase4" style=
"background-color: green">
70 <div style=
"background-color: blue; -webkit-backface-visibility: hidden; transform: rotateY(100deg)">
71 <div style=
"background-color: lime; -webkit-backface-visibility: hidden; transform: rotateX(100deg)">
77 if (window
.testRunner
) {
78 testRunner
.dumpAsTextWithPixelResults(); // This is only useful as a pixel test.
79 document
.write("<span style='position:absolute; top:-5000px'>This test is only useful as a pixel test</span>");