mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab
This commit is contained in:
parent
1a81b18b9f
commit
2c9faf5363
91915 changed files with 5979820 additions and 0 deletions
|
@ -0,0 +1,73 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<title>CSS Test: regions create stacking contexts</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/#the-flow-from-property" rel="help">
|
||||
<meta content="ahem" name="flags">
|
||||
<meta content="Test checks that regions create stacking contexts for content flowed into them." name="assert">
|
||||
<link href="reference/regions-stacking-context-004-ref.htm" rel="match">
|
||||
<style>
|
||||
#content {
|
||||
opacity: 0.7;
|
||||
}
|
||||
#content > div {
|
||||
position: relative;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
flow-into: flow;
|
||||
}
|
||||
.left {
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-color: lightgreen;
|
||||
}
|
||||
.center {
|
||||
top: -75px;
|
||||
left: 25px;
|
||||
background-color: lightblue;
|
||||
}
|
||||
.right {
|
||||
top: -150px;
|
||||
left: 50px;
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
#region {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
flow-from: flow;
|
||||
}
|
||||
#region p{
|
||||
height: 50%;
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
#dummy {
|
||||
background-color: purple;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin-top: -75px;
|
||||
margin-left: 75px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ol>
|
||||
<li>You should see no red.</li>
|
||||
<li>You should see four colored overlapping squares, from back to front: a green square, a blue square, a yellow square and a purple square.</li>
|
||||
<!-- The purple square should be painted on top of the other ones because the region creates a stackign context for its contents. -->
|
||||
</ol>
|
||||
|
||||
<div id="region">
|
||||
<p> </p>
|
||||
</div>
|
||||
<div id="dummy"></div>
|
||||
|
||||
<div id="content">
|
||||
<div class="left"></div>
|
||||
<div class="center"></div>
|
||||
<div class="right"></div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue