8 // Check if the two divs aren't overflowed by checking they have
10 var ref
= document
.getElementById("ref");
11 var test
= document
.getElementById("test");
12 var result
= document
.getElementById("result");
13 if (ref
.scrollHeight
== test
.scrollHeight
)
14 result
.appendChild(document
.createTextNode("SUCCESS"));
16 result
.appendChild(document
.createTextNode("FAILED"));
19 if (window
.testRunner
)
20 testRunner
.dumpAsText();
24 <body onload=
"run();">
26 These two lines should look same as spaces after a list marker should
27 be ignored. There are
18 characters in each line. As they are
20px
28 width, the total width should be
360px + a few pixels for table.
29 If the space character after the list marker in
"test" isn't ignored,
30 the number of characters become
19 and
370px div will be overflowed.
31 Note that this test requires Ahem font.
33 <div style=
"height: 20px; overflow-y: scroll;" id=
"ref">
34 <table style=
"width: 370px; font: 20px Ahem;">
36 <td><ol><li>XpX XpX
</ol></td>
37 <td><ol><li>XpX XpX
</ol></td>
42 <div style=
"height: 20px; overflow-y: scroll;" id=
"test">
43 <table style=
"width: 370px; font: 20px Ahem;">
45 <td><ol><li> XpX XpX
</ol></td>
46 <td><ol><li>XpX XpX
</ol></td>