mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
81 lines
No EOL
2 KiB
HTML
81 lines
No EOL
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: float and non-float content with forced region break fragmented across
|
|
two regions</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 forcing a region break on the containing box
|
|
of a float will fragment the float across the regions." name="assert" />
|
|
<link href="reference/floats-in-named-flow-017-ref.xht" rel="match" />
|
|
<style>
|
|
article {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
color: green;
|
|
}
|
|
.flow {
|
|
flow-into: f;
|
|
}
|
|
.float {
|
|
float: left;
|
|
color: blue;
|
|
}
|
|
.region {
|
|
flow-from: f;
|
|
margin: 20px;
|
|
}
|
|
|
|
.region > p {
|
|
background: red;
|
|
}
|
|
#container {
|
|
break-after: region;
|
|
}
|
|
#spacer {
|
|
height: 10px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- TODO: Must reconfirm this behavior based on the latest version of the fragmentation spec. -->
|
|
<p>
|
|
Test passes if you see two rows, each with two equally sized blue and green squares (blue
|
|
on the left, green on the right); the squares should be flush to one another but there
|
|
should be a small vertical space between the two rows.<br />
|
|
You should see no red.
|
|
</p>
|
|
|
|
<div class="region">
|
|
<p> </p>
|
|
</div>
|
|
<div class="region">
|
|
<p> </p>
|
|
</div>
|
|
|
|
<article class="flow">
|
|
<div id="container">
|
|
<div class="float">
|
|
<span>xxxx<br /></span>
|
|
<span>xxxx<br /></span>
|
|
<span>xxxx<br /></span>
|
|
<span>xxxx<br /></span>
|
|
<span>xxxx<br /></span>
|
|
<span>xxxx<br /></span>
|
|
<span>xxxx<br /></span>
|
|
<span>xxxx</span>
|
|
</div>
|
|
xxxx<br />
|
|
xxxx<br />
|
|
xxxx<br />
|
|
xxxx
|
|
<div id="spacer"> </div>
|
|
</div>
|
|
xxxx<br />
|
|
xxxx<br />
|
|
xxxx<br />
|
|
xxxx
|
|
</article>
|
|
|
|
</body></html> |