summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/border-spacing-without-vertical-value.html
blob: c83b43af93603075f51cea91b80e674a5456f61f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<body>
<p>This tests obtaining the value of "border-spacing" property without setting -webkit-border-vertical-spacing.
WebKit should not crash and we should get null.</p>
<script type="text/javascript">

if (window.testRunner)
    testRunner.dumpAsText();

var a = document.createElement("a");
a.setAttribute("style", "-webkit-border-horizontal-spacing: 1px;");

var borderSpacing = a.style.getPropertyValue('border-spacing');
if (borderSpacing !== "")
    document.write('FAIL. WebKit didn\'t crash but got "' + borderSpacing + '" but expected "".');
else
    document.write("PASS. WebKit didn't crash.");

</script>