OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <html> | |
3 <head> | |
4 <title>Test for https://bugs.webkit.org/show_bug.cgi?id=102957</title> | |
5 <style> | |
6 .content { | |
7 -webkit-flow-into: flow; | |
8 font-size: 50px; | |
9 color: green; | |
10 font-family: Ahem; | |
11 } | |
12 | |
13 .content ul { | |
14 margin: 0px; | |
15 } | |
16 | |
17 #target { | |
18 color: red; | |
19 } | |
20 | |
21 #target.list-marker { | |
22 color: green; | |
23 list-style-type: none; | |
24 } | |
25 | |
26 .region { | |
27 -webkit-flow-from: flow; | |
28 height: 50px; | |
29 } | |
30 </style> | |
31 <script> | |
32 function removeFirstLetter() { | |
33 document.body.offsetTop; // force layout | |
34 document.getElementById("target").classList.add("list-marker"); | |
35 } | |
36 </script> | |
37 </head> | |
38 <body onload="removeFirstLetter()"> | |
39 <p>Test case for <a href="https://bugs.webkit.org/show_bug.cgi?id=102957
">102957</a>.</p> | |
40 <p>Testing that the removal of the list-marker render object will not cr
ash the flow thread logic.</p> | |
41 <p>You should see a green rectangle. There should be no red.</p> | |
42 <div class="content"> | |
43 <ul> | |
44 <li id="target">aaaa</li> | |
45 </ul> | |
46 </div> | |
47 <div class="region"></div> | |
48 </body> | |
49 </html> | |
OLD | NEW |