blob: 71618c4a674478832b057763e70be7615087cac3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
#red { position: absolute; background-color: red; width: 50px; height: 50px; top: 300px; left: 300px; }
#container { position: absolute; top: 300px; left: 300px; width: 100px; height: 100px; }
#region { -webkit-flow-from: flow; position: absolute; top: 100px; left: 100px; width: 200px; height: 200px; }
#target { position: fixed; -webkit-flow-into: flow; width: 50px; height: 50px; background-color: green; top: 100px; left: 50px; }
</style>
<script src="../repaint/resources/text-based-repaint.js"></script>
</head>
<body onload="runRepaintTest()">
<!--
Test for WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=111176
Test that a fixed positioned element, collected into a named flow, that has its position changed to static
and out of a named flow, is positioned relative to the container instead of viewport.
On success, you should see a green rectangle below.
-->
<div id="red"></div>
<div id="container">
<div id="target"></div>
</div>
<div id="region"></div>
<script>
function repaintTest() {
var target = document.getElementById("target");
target.style.position = "static";
target.style.webkitFlowInto = "none";
}
</script>
</body>
</html>