OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style type="text/css" title="teste"> | 4 <style type="text/css" title="teste"> |
5 .box { | 5 .box { |
6 margin: 0px; | 6 margin: 0px; |
7 padding: 0px; | 7 padding: 0px; |
8 overflow: hidden; | 8 overflow: hidden; |
9 } | 9 } |
10 .border { border:1px solid black; } | 10 .border { border:1px solid black; } |
(...skipping 26 matching lines...) Expand all Loading... |
37 #pseudo{ | 37 #pseudo{ |
38 font-size:2ch; | 38 font-size:2ch; |
39 } | 39 } |
40 #pseudo:first-line { | 40 #pseudo:first-line { |
41 font-size:3ch; | 41 font-size:3ch; |
42 } | 42 } |
43 #pseudo span:last-child { | 43 #pseudo span:last-child { |
44 font-size:1ch; | 44 font-size:1ch; |
45 } | 45 } |
46 </style> | 46 </style> |
47 <script src="../js/resources/js-test-pre.js"></script> | 47 <script src="../../resources/js-test.js"></script> |
48 <script type="text/javascript"> | 48 <script type="text/javascript"> |
49 </script> | 49 </script> |
50 </head> | 50 </head> |
51 <body id="body"> | 51 <body id="body"> |
52 <p>This is a test to make sure ch units work as intended. You should not see
<b>anything</b> red on this page.</p> | 52 <p>This is a test to make sure ch units work as intended. You should not see
<b>anything</b> red on this page.</p> |
53 Only 'PASS' should be visible: | 53 Only 'PASS' should be visible: |
54 <div id="box_mono_zero" class="box mono zero"></div> | 54 <div id="box_mono_zero" class="box mono zero"></div> |
55 <script type="text/javascript"> | 55 <script type="text/javascript"> |
56 description("This is a test to make sure ch units work as intended.") | 56 description("This is a test to make sure ch units work as intended.") |
57 shouldEvaluateTo('document.getElementById("box_mono_zero").clientWidth',
"0"); | 57 shouldEvaluateTo('document.getElementById("box_mono_zero").clientWidth',
"0"); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 var CSSRules = 'rules'; | 174 var CSSRules = 'rules'; |
175 for (var i = 0; i < document.styleSheets[0][CSSRules].length; ++i) | 175 for (var i = 0; i < document.styleSheets[0][CSSRules].length; ++i) |
176 if (document.styleSheets[0][CSSRules][i].selectorText === ".fail
") { | 176 if (document.styleSheets[0][CSSRules][i].selectorText === ".fail
") { |
177 document.styleSheets[0][CSSRules][i].style['display'] = 'non
e'; | 177 document.styleSheets[0][CSSRules][i].style['display'] = 'non
e'; |
178 break; | 178 break; |
179 } | 179 } |
180 } | 180 } |
181 </script> | 181 </script> |
182 </body> | 182 </body> |
183 </html> | 183 </html> |
OLD | NEW |