OLD | NEW |
1 <p> | 1 <p> |
2 This tests the mapping of length-type attributes to CSS length values. | 2 This tests the mapping of length-type attributes to CSS length values. |
3 </p> | 3 </p> |
4 <pre id="console"></pre> | 4 <pre id="console"></pre> |
5 <img id="img" style="display: none;"> | 5 <img id="img" style="display: none;"> |
6 <table><col id="col" style="display: none;"></table> | 6 <table><col id="col" style="display: none;"></table> |
7 <script> | 7 <script> |
8 if (window.layoutTestController) | 8 if (window.layoutTestController) |
9 layoutTestController.dumpAsText(); | 9 layoutTestController.dumpAsText(); |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 } | 26 } |
27 | 27 |
28 var img = document.getElementById("img"); | 28 var img = document.getElementById("img"); |
29 log ("<img>:"); | 29 log ("<img>:"); |
30 test(img, "90zz", "90px"); | 30 test(img, "90zz", "90px"); |
31 test(img, "80%", "80%"); | 31 test(img, "80%", "80%"); |
32 test(img, "70%5", "70%"); | 32 test(img, "70%5", "70%"); |
33 test(img, "60%%", "60%"); | 33 test(img, "60%%", "60%"); |
34 test(img, "50*"); | 34 test(img, "50*"); |
35 test(img, "40*5"); | 35 test(img, "40*5"); |
36 test(img, "30.5", "30.5px"); | 36 test(img, "30.5", "30px"); |
37 log(""); | 37 log(""); |
38 | 38 |
39 var col = document.getElementById("col"); | 39 var col = document.getElementById("col"); |
40 log ("<col>:"); | 40 log ("<col>:"); |
41 test(col, "90zz", "90px"); | 41 test(col, "90zz", "90px"); |
42 test(col, "80%", "80%"); | 42 test(col, "80%", "80%"); |
43 test(col, "70%5", "70%"); | 43 test(col, "70%5", "70%"); |
44 test(col, "60%%", "60%"); | 44 test(col, "60%%", "60%"); |
45 test(col, "50*"); | 45 test(col, "50*"); |
46 test(col, "40*5"); | 46 test(col, "40*5"); |
47 test(col, "30.5", "30.5px"); | 47 test(col, "30.5", "30px"); |
48 </script> | 48 </script> |
OLD | NEW |