blob: 2fd4e1cf594151425eb7e1ccf2cce2dea37ac95e [file] [log] [blame]
<!doctype html>
<html>
<head>
<style>
.region
{
-webkit-flow-from: no_flow;
}
</style>
</head>
<body>
<p>Tests that changing the element into a region without an existing flow disconnects the element's content.</p>
<div id="region_without_flow">
<div id="region_content">This text should not be visible when the element becomes a region.</div>
</div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var region = document.getElementById("region_without_flow");
// The element is not a region yet, it has content.
var pass = region.innerText.length != 0;
// The element becomes a region, its content gets disconnected.
region.className = "region";
pass &= region.innerText.length == 0;
document.write("<p>" + pass ? "PASS" : "FAIL" + "</p>");
</script>
</body>
</html>