servo/tests/wpt/css-tests/css-regions-1_dev/xhtml1/regions-stacking-context-003.xht

73 lines
No EOL
1.8 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSS Test: regions as part of the same stacking context as the node</title>
<link href="mailto:mibalan@adobe.com" rel="author" title="Mihai Balan" />
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
<link href="http://www.w3.org/TR/css3-regions/#flow-from" rel="help" />
<meta content="ahem" name="flags" />
<meta content="Test checks that regions respect stacking and painting rules when
both the region and the content nodes are part of the same, non-root stacking context." name="assert" />
<link href="reference/regions-stacking-context-003-ref.xht" rel="match" />
<style>
#content {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
color: green;
flow-into: flow;
}
.region {
width: 100px;
height: 100px;
flow-from: flow;
}
.region p{
height: 50%;
background-color: red;
}
#container {
position: relative;
opacity: .7;
}
#container &gt; div {
position: absolute;
width: 100px;
height: 100px;
}
.left {
top: 0;
left: 0;
background-color: lightgreen;
}
.center {
top: 25px;
left: 25px;
background-color: lightblue;
}
.right {
top: 50px;
left: 50px;
background-color: yellow;
}
</style>
</head>
<body>
<ol>
<li>You should see no red.</li>
<li>You should see three colored overlapping squares, from back to front: a green square, a blue square and a yellow square.</li>
</ol>
<div id="container">
<div class="left region"></div>
<div class="center"></div>
<div class="right"></div>
<div id="content">
xxxxx<br />
xxxxx<br />
xxxxx<br />
xxxxx<br />
xxxxx
</div>
</div>
</body></html>