Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: LayoutTests/fast/css/border-spacing-without-vertical-value.html

Issue 1274643002: CSSStyleDeclaraction returns empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed changes from imported/csswg-test Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698