<!DOCTYPE html>
<html>
<head>
<title>This tests that we can properly bail out of simple line layout while inside layout.</title>
<style>
.foo {
	-webkit-border-fit: lines;
	column-count: 2;
}
</style>
</head>
<body>
<div id=foobar>Pass if no crash or assert<div></div></div>
<script>
if (window.testRunner) {
    testRunner.waitUntilDone();
    testRunner.dumpAsText();
}
setTimeout(function() {
	foobar.className = "foo";
    if (window.testRunner)
        testRunner.notifyDone();
}, 0);
</script>
</body>
</html>
