mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
106 lines
No EOL
2.2 KiB
HTML
106 lines
No EOL
2.2 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 Regions: painting order for fragmented floats that are 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" />
|
|
<meta content="ahem" name="flags" />
|
|
<meta content="Test checks that floats inside a named flow that also create a
|
|
stacking context respect the correct painting order even when fragmented across
|
|
multiple regions that are overlapping." name="assert" />
|
|
<link href="reference/floats-in-named-flow-026-ref.xht" rel="match" />
|
|
<style>
|
|
article {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
}
|
|
.flow {
|
|
flow-into: f;
|
|
|
|
}
|
|
.float {
|
|
float: left;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.back {
|
|
color: green;
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|
|
|
|
.front {
|
|
color: red;
|
|
z-index: 20;
|
|
}
|
|
|
|
.content {
|
|
color: blue;
|
|
}
|
|
|
|
.region {
|
|
/* The region is 115px tall to catch bugs where the floats would be
|
|
sliced rather than properly fragmented */
|
|
height: 115px;
|
|
flow-from: f;
|
|
}
|
|
|
|
.shifted {
|
|
position: relative;
|
|
/* See the above comment about the region height */
|
|
top: -115px;
|
|
}
|
|
|
|
.region > p {
|
|
background: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
Test passes if you see two squares, side by side horizontally. The left square should
|
|
be green, the right one should be blue and they should be flush to one another.<br />
|
|
You should see no red.
|
|
</p>
|
|
|
|
<div class="region">
|
|
<p> </p>
|
|
</div>
|
|
<div class="shifted region">
|
|
<p> </p>
|
|
</div>
|
|
|
|
<article class="flow">
|
|
<div class="float">
|
|
<span class="front">
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
</span>
|
|
<span class="back">
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx
|
|
</span>
|
|
</div>
|
|
<div class="content">
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx
|
|
</div>
|
|
</article>
|
|
|
|
|
|
</body></html> |