blob: 8c1fdfa61fd139324e9b1457521c94b1315270fe [file] [log] [blame]
<!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 !== null)
document.write('FAIL. WebKit didn\'t crash but got "' + borderSpacing + '" but expected "".');
else
document.write("PASS. WebKit didn't crash.");
</script>