5 <meta name=
"viewport" content=
"width=800">
17 background-color: green;
20 background-color: blue;
25 background-color: purple;
29 <script src=
"resources/autosizingTest.js"></script>
32 This test passes if all lines have the same width.
<br/>
38 AutosizeAutosizeAutosizeAutosize
<br/>
39 AutosizeAutosizeAutosizeAutosize
<br/>
40 AutosizeAutosizeAutosizeAutosize
<br/>
41 AutosizeAutosizeAutosizeAutosize
<br/>
43 <i class=
"inline">AutosizeAutosizeAutosizeAutosize
</i><br/>
44 AutosizeAutosizeAutosizeAutosize
<br/>
45 AutosizeAutosizeAutosizeAutosize
<br/>
46 AutosizeAutosizeAutosizeAutosize
<br/>
47 <b><b><b><i class=
"inline"><b><b><b>AutosizeAutosizeAutosizeAutosize
</b></b></b></i></b></b></b><br/>
48 AutosizeAutosizeAutosizeAutosize
<br/>
49 AutosizeAutosizeAutosizeAutosize
<br/>
50 AutosizeAutosizeAutosizeAutosize
<br/>
51 AutosizeAutosizeAutosizeAutosize
<br/>
52 AutosizeAutosizeAutosizeAutosize
<br/>
53 AutosizeAutosizeAutosizeAutosize
<br/>
54 AutosizeAutosizeAutosizeAutosize
<br/>
55 AutosizeAutosizeAutosizeAutosize
<br/>
56 AutosizeAutosizeAutosizeAutosize
62 if (window
.testRunner
)
63 testRunner
.dumpAsText();
65 var inlines
= document
.getElementsByClassName('inline');
66 var referenceWidth
= inlines
[0].offsetWidth
;
67 for (var i
= 1; i
< inlines
.length
; i
++) {
68 if (inlines
[i
].offsetWidth
!= referenceWidth
)
72 document
.body
.innerText
= 'PASS: All inlines have the same width.';
74 document
.body
.innerText
= 'FAIL: All inlines do not have the same width.';