OLD | NEW |
---|---|
1 <!doctype html> | 1 <!doctype html> |
2 <style> | 2 <style> |
3 #test { | 3 #test { |
4 border: 10px solid red; | 4 border: 10px solid red; |
5 border-top-width: 50px; | 5 border-top-width: 50px; |
6 } | 6 } |
7 </style> | 7 </style> |
8 <p>getPropertyValue('border') should not return a value for any property that do esn't have the same value for top, left, right and bottom, even if the values th at differ are implicitly set by a shorthand. | 8 <p>getPropertyValue('border') should not return a value for any property that do esn't have the same value for top, left, right and bottom, even if the values th at differ are implicitly set by a shorthand. |
Timothy Loh
2016/05/17 01:53:53
Interestingly, this description was here since thi
| |
9 <pre id="result"> | 9 <pre id="result"> |
10 </pre> | 10 </pre> |
11 | 11 |
12 <script> | 12 <script> |
13 if (window.testRunner) | 13 if (window.testRunner) |
14 testRunner.dumpAsText(); | 14 testRunner.dumpAsText(); |
15 var sheet = document.querySelector('style').sheet; | 15 var sheet = document.querySelector('style').sheet; |
16 var expected = 'solid red'; | 16 var expected = ''; |
17 var actual = sheet.cssRules[0].style.getPropertyValue('border'); | 17 var actual = sheet.cssRules[0].style.getPropertyValue('border'); |
18 | 18 |
19 if (expected == actual) | 19 if (expected == actual) |
20 document.getElementById('result').innerText = 'PASS'; | 20 document.getElementById('result').innerText = 'PASS'; |
21 else | 21 else |
22 document.getElementById('result').innerText = 'FAIL: expected "' + expected + '", got "' + actual + '"'; | 22 document.getElementById('result').innerText = 'FAIL: expected "' + expected + '", got "' + actual + '"'; |
23 | 23 |
24 </script> | 24 </script> |
25 | 25 |
OLD | NEW |