blob: 4f97487611006ec1e0e1f829c9b068cf349669f1 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<style>
.explicitlyNoColumns { -webkit-columns:auto; }
</style>
<div id="elm"></div>
<script>
description("Test that setting columns to auto is the same as not setting it at all.");
document.body.offsetTop;
document.getElementById('elm').className = "explicitlyNoColumns";
if (window.internals) {
// Need to call updateStyleAndReturnAffectedElementCount() first, to get style recalculated,
// so that the necessary objects get marked for layout (which, if the test passes, should be 0).
shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
shouldBe("internals.needsLayoutCount()", "0");
} else {
testFailed("There's no web exposed API usable for this test. The bug doesn't affect layout in a reliable way. Please rerun inside the layout test framework.");
}
</script>