blob: e408f04b7341363bfa6d1126e1e8e7dcdf63cbab [file] [log] [blame]
<!doctype html>
<html>
<head>
<style>
#red { position: absolute; width: 20%; height: 20%; top: 150px; left: 125px; background-color: red; }
#fixed { -webkit-flow-into: flow; position: fixed; width: 20%; height: 20%; background-color: green; top: 150px; left: 125px; }
#region { -webkit-flow-from: flow; width: 200px; height: 200px; position: absolute; top: 150px; left: 150px; }
</style>
</head>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=88133">WebKit Bug 88133</a> Collecting a fixed positioned element in a named flow causes WebKit to crash.</p>
<p>This test collects a fixed position element inside a named flow and flows it into a region.</p>
<p>The fixed positioned element should be positioned and sized relative to the viewport.</p>
<p>The test passes if it does not crash or assert and there is no red rectangle visible.</p>
<div id="red"></div>
<div id="fixed"></div>
<div id="region"></div>
</body>
</html>