3 .red { border:
2px solid red }
4 .green { border:
2px solid green }
5 .visible { visibility: visible}
6 .invisible { visibility: hidden}
7 //.invisible:hover { visibility: visible}
8 .abstop { position: absolute; left:
0; right:
0; height:
30px }
9 .abs { position: absolute; left:
0; right:
0; top:
0; bottom:
0 }
16 function startTest() {
17 if (window
.testRunner
) {
18 testRunner
.waitUntilDone();
19 testRunner
.layoutAndPaintAsyncThen(doTest
)
21 requestAnimationFrame(doTest
)
28 document
.getElementById('24c').style
.setProperty('visibility','hidden','');
29 document
.getElementById('24a').removeChild(document
.getElementById('24b'));
32 document
.getElementById('25c').style
.setProperty('visibility','hidden','');
33 document
.getElementById('25a').removeChild(document
.getElementById('25b'));
36 document
.getElementById('26c').style
.setProperty('visibility','hidden','');
37 document
.getElementById('26a').removeChild(document
.getElementById('26b'));
39 if (window
.testRunner
) {
40 testRunner
.layoutAndPaintAsyncThen(function() {
41 testRunner
.notifyDone();
49 <body onload=
"startTest();">
51 24 green box with word ok:
52 <div id=
"24a" class=
"invisible abstop red">
53 <div class=
"abs invisible red">
56 <div id=
"24b" class=
"abs invisible red">
58 <div id=
"24c" class=
"visible red">
60 <div class=
"visible green">
66 25 green box with word ok:
67 <div id=
"25a" class=
"invisible abstop red">
68 <div class=
"invisible red">
70 <div class=
"abs invisible red">
72 <div id=
"25b" class=
"abs invisible red">
75 <div id=
"25c" class=
"visible red">
77 <div class=
"visible green">
83 26 green box with word ok:
84 <div id=
"26a" class=
"invisible abstop red">
85 <div class=
"invisible red">
88 <div class=
"abs invisible red">
91 <div id=
"26b" class=
"abs invisible red">
94 <div id=
"26c" class=
"visible red">
96 <div class=
"visible green">