OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <body> | 2 <body> |
3 <p>This tests obtaining the value of "border-spacing" property without setting -
webkit-border-vertical-spacing. | 3 <p>This tests obtaining the value of "border-spacing" property without setting -
webkit-border-vertical-spacing. |
4 WebKit should not crash and we should get null.</p> | 4 WebKit should not crash and we should get null.</p> |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 | 6 |
7 if (window.testRunner) | 7 if (window.testRunner) |
8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
9 | 9 |
10 var a = document.createElement("a"); | 10 var a = document.createElement("a"); |
11 a.setAttribute("style", "-webkit-border-horizontal-spacing: 1px;"); | 11 a.setAttribute("style", "-webkit-border-horizontal-spacing: 1px;"); |
12 | 12 |
13 var borderSpacing = a.style.getPropertyValue('border-spacing'); | 13 var borderSpacing = a.style.getPropertyValue('border-spacing'); |
14 if (borderSpacing !== null) | 14 if (borderSpacing !== "") |
15 document.write('FAIL. WebKit didn\'t crash but got "' + borderSpacing + '" b
ut expected "".'); | 15 document.write('FAIL. WebKit didn\'t crash but got "' + borderSpacing + '" b
ut expected "".'); |
16 else | 16 else |
17 document.write("PASS. WebKit didn't crash."); | 17 document.write("PASS. WebKit didn't crash."); |
18 | 18 |
19 </script> | 19 </script> |
OLD | NEW |