hyatt@apple.com | 61bbedf | 2011-01-26 23:10:57 +0000 | [diff] [blame] | 1 | <body style="-webkit-writing-mode:vertical-lr"> |
| 2 | <p> |
| 3 | Test for <i><a href="rdar://problem/5962118">rdar://problem/5962118</a> Crash in RenderBlock::calcColumnWidth()</i>. |
| 4 | </p> |
| 5 | <p> |
| 6 | This tests that the <tt>column-gap</tt> property does not allow negative values. |
| 7 | </p> |
| 8 | <p id = "result"></p> |
| 9 | <div id="target" style="-webkit-column-count: 4; -webkit-column-gap: -10px;"></div> |
| 10 | <script> |
rniwa@webkit.org | 03b9c6d | 2012-07-16 01:41:53 +0000 | [diff] [blame] | 11 | if (window.testRunner) |
| 12 | testRunner.dumpAsText(); |
hyatt@apple.com | 61bbedf | 2011-01-26 23:10:57 +0000 | [diff] [blame] | 13 | |
| 14 | var style = getComputedStyle(document.getElementById("target")); |
| 15 | var columnGap = style.getPropertyValue("-webkit-column-gap"); |
| 16 | document.getElementById("result").innerText = (columnGap == "0" || columnGap == "normal") ? "PASS" : "FAIL: column-gap is " + columnGap; |
| 17 | </script> |