4 <style type=
"text/css">
5 span:before
{ content: "TEST FAILED"; }
6 #test:before
{ content: normal
; }
8 <script type=
"text/javascript">
9 if (window
.testRunner
) {
10 testRunner
.dumpAsText();
11 testRunner
.waitUntilDone();
15 testWidth
= window
.getComputedStyle(document
.getElementById("testContainer"), null).getPropertyValue("width");
16 referenceWidth
=window
.getComputedStyle(document
.getElementById("reference"), null).getPropertyValue("width");
17 if (testWidth
== referenceWidth
)
18 document
.getElementById("console").innerText
= "PASSED";
20 document
.getElementById("console").innerText
= "FAILED: testWidth=" + testWidth
+"; expected " + referenceWidth
;
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
27 <body onload=
"setTimeout('run()', 0);">
28 The texts between the markers should be identical.
29 <p>========Marker1========
</p>
32 <td id=
"testContainer"><span id=
"test">12345678901234567890</span></td>
33 <td>1 1 1 1 1 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 11 1 </td>
36 <p>========Marker2========
</p>
39 <td id=
"reference">12345678901234567890</td>
40 <td>1 1 1 1 1 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 11 1 </td>
43 <p>========Marker3========
</p>