mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
75 lines
No EOL
1.6 KiB
HTML
75 lines
No EOL
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>CSS Test: regions as part of a non-root stacking context</title>
|
|
<link rel="author" title="Mihai Balan" href="mailto:mibalan@adobe.com">
|
|
<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
|
|
<link rel="help" href="http://www.w3.org/TR/css3-regions/#flow-from">
|
|
<meta name="flags" content="ahem">
|
|
<meta name="assert" content="Test checks that regions respect stacking rules when part of a non-root stacking context.">
|
|
<link rel="match" href="reference/regions-stacking-context-002-ref.html">
|
|
<style>
|
|
#content {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
color: green;
|
|
flow-into: flow;
|
|
}
|
|
.region {
|
|
flow-from: flow;
|
|
}
|
|
.region p{
|
|
height: 50%;
|
|
background-color: red;
|
|
}
|
|
|
|
#container {
|
|
opacity: 0.7;
|
|
}
|
|
#container > div {
|
|
position: absolute;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
.left {
|
|
top: 0;
|
|
left: 0;
|
|
background-color: lightblue;
|
|
}
|
|
.center {
|
|
top: 25px;
|
|
left: 25px;
|
|
background-color: lightgreen;
|
|
}
|
|
.right {
|
|
top: 50px;
|
|
left: 50px;
|
|
background-color: yellow;
|
|
}
|
|
ol {
|
|
margin-left: 150px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ol>
|
|
<li>You should see no red.</li>
|
|
<li>You should see three colored overlapping squares, from back to front: a blue square, a green square and a yellow square.</li>
|
|
</ol>
|
|
<div id="content">
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx
|
|
</div>
|
|
<div id="container">
|
|
<div class="left"></div>
|
|
<div class="center region">
|
|
<p> </p>
|
|
</div>
|
|
<div class="right"></div>
|
|
</div>
|
|
</body>
|
|
</html> |