blob: 71abc9afc91814d4b3ef3a08af21a031e55313b3 [file] [log] [blame]
<!doctype html>
<html>
<head>
<style>
body { font: 16px/1.25 monospace; }
#content { -webkit-flow-into: article; }
.rightFloat { float: right; }
.region { -webkit-flow-from: article; }
.small { width: 75px; height: 25px; }
.big { width: 200px; height: 150px; }
</style>
</head>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=112515"> [CSSRegions] Crash reflowing content in variable width regions</a>.</p>
<p>On success, you should see past below and test does not crash or assert.</p>
<div id="content">
<div class="rightFloat">Floating content</div>
</div>
<div class="region small"></div>
<div class="region big"></div>
<p>PASS</p>
<script>
document.body.offsetTop; // force layout
document.getElementById("content").innerHTML = "<span>Some text here</span>";
if (window.testRunner)
window.testRunner.dumpAsText();
</script>
</body>
</html>