blob: f2b7739210e122fa560ea2ca1713442276b2cef7 [file] [log] [blame]
<p>
Test for <i><a href="rdar://problem/5962118">rdar://problem/5962118</a> Crash in RenderBlock::calcColumnWidth()</i>.
</p>
<p>
This tests that the <tt>column-gap</tt> property does not allow negative values.
</p>
<p id = "result"></p>
<div id="target" style="-webkit-column-count: 4; -webkit-column-gap: -10px;"></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var style = getComputedStyle(document.getElementById("target"));
var columnGap = style.getPropertyValue("-webkit-column-gap");
document.getElementById("result").innerText = (columnGap == "0" || columnGap == "normal") ? "PASS" : "FAIL: column-gap is " + columnGap;
</script>