blob: 55da20489b44c1f9df0bacda5c2b222ef99eb728 [file] [log] [blame]
<!DOCTYPE html>
<!--
This test verifies that if a region appears before a sibling element in DOM order, the region's
content paints below the sibling.
This test passes if there is no red visible.
-->
<html>
<head>
<style>
/*
This element should not be visible because the region's content should paint under the
region's sibling.
*/
#content-for-region {
background-color: red;
-webkit-flow-into: flow;
width: 50px;
height: 50px;
margin-left: 50px;
margin-top: 50px;
}
#region {
background-color: gray;
-webkit-flow-from: flow;
width: 100px;
height: 100px;
}
#sibling-of-region {
position: relative; z-index: 1; /* create Stacking Contexts */
background-color: green;
width: 100px;
height: 100px;
margin-top: -90px;
margin-left: 10px;
}
</style>
</head>
<body>
<div id="content-for-region"></div>
<div id="region"></div>
<div id="sibling-of-region"></div>
</body>
</html>