10 content: 'This sentence should be after
"First." and
"Second."';
15 if (window
.testRunner
)
16 testRunner
.dumpAsText();
19 var first
= document
.getElementById("first");
20 var second
= document
.getElementById("second");
22 //Test whether the first and second lines are laid out sequentially.
23 //If there is something between them then it must be the css generated
24 //content which means this bug is not fixed.
25 if(second
.offsetTop
!= first
.offsetTop
+ first
.offsetHeight
)
26 document
.getElementById("result").innerHTML
= "FAIL";
28 document
.getElementById("result").innerHTML
= "PASS";
32 <body onload=
"test()">
33 <p>Bug
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=32288">32288</a> - :after selector displays in wrong place with nested div
</p>
34 <div class=
"a" id=
"container">
35 <div id=
"first">First.
</div>
36 <div id=
"second">Second.
</div>