OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 | |
5 <meta name="viewport" content="width=800"> | |
6 <style> | |
7 html { font-size: x-small; } | |
8 .inline { display: inline; font-weight: normal; font-style: normal; background-c olor: green; } | |
skobes
2014/03/31 17:19:58
Suggest putting each property on its own line for
pdr.
2014/04/01 06:06:43
Done.
| |
9 i.inline { background-color: blue; } | |
10 b { font-weight: normal; font-style: normal; background-color: purple; } | |
11 </style> | |
12 | |
13 <script src="resources/autosizingTest.js"></script> | |
14 | |
15 <script> | |
16 onload = function() { | |
skobes
2014/03/31 17:19:58
Nit: you can probably inline this at the bottom of
pdr.
2014/04/01 06:06:43
Done.
| |
17 if (window.testRunner) | |
18 testRunner.dumpAsText(); | |
19 var pass = true; | |
20 var inlines = document.getElementsByClassName('inline'); | |
21 var referenceWidth = inlines[0].offsetWidth; | |
22 for (var i = 1; i < inlines.length; i++) { | |
23 if (inlines[i].offsetWidth != referenceWidth) | |
24 pass = false; | |
25 } | |
26 if (pass) | |
27 document.write('PASS: All inlines have the same width.'); | |
28 else | |
29 document.write('FAIL: All inlines do not have the same width.'); | |
30 } | |
31 </script> | |
32 | |
33 </head> | |
34 <body> | |
35 This test passes if all lines have the same width.<br/> | |
36 <div class="inline"> | |
37 AutosizeAutosizeAutosizeAutosize<br/> | |
38 AutosizeAutosizeAutosizeAutosize<br/> | |
39 AutosizeAutosizeAutosizeAutosize<br/> | |
40 AutosizeAutosizeAutosizeAutosize<br/> | |
41 <i class="inline">AutosizeAutosizeAutosizeAutosize</i><br/> | |
42 AutosizeAutosizeAutosizeAutosize<br/> | |
43 AutosizeAutosizeAutosizeAutosize<br/> | |
44 AutosizeAutosizeAutosizeAutosize<br/> | |
45 <b><b><b><i class="inline"><b><b><b>AutosizeAutosizeAutosizeAutosize</b></b></b> </i></b></b></b><br/> | |
46 AutosizeAutosizeAutosizeAutosize<br/> | |
47 AutosizeAutosizeAutosizeAutosize<br/> | |
48 </div> | |
49 </body> | |
50 </html> | |
OLD | NEW |