OLD | NEW |
| (Empty) |
1 <head> | |
2 <style> | |
3 .a { width: 0px; } | |
4 .a { width: 100px; } | |
5 .a { width: 50%; } | |
6 .a { width: 1; } | |
7 .a { color: red; } | |
8 .a { color: rgb(0,0,0); } | |
9 .a { color: rgb(255,255,255); } | |
10 .a { color: rgba(0,0,0,255); } | |
11 .a { color: rgba(0,0,0,0); } | |
12 .a { color: inherit; } | |
13 .a { color: initial; } | |
14 </style> | |
15 <script> | |
16 values = new Array(); | |
17 var rules = document.getElementsByTagName('style')[0].sheet.cssRules; | |
18 for(i = 0 ; i < rules.length; ++i) { | |
19 var val = rules[i].style.getPropertyCSSValue('color'); | |
20 if (!val) | |
21 val = rules[i].style.getPropertyCSSValue('width'); | |
22 values.push(val); | |
23 document.write(val.foo ? "FAILED<br>" : "PASSED<br>"); | |
24 } | |
25 if (window.testRunner) | |
26 testRunner.notifyDone(); | |
27 </script> | |
OLD | NEW |