servo/tests/wpt/css-tests/css-regions-1_dev/html/floats-in-named-flow-017.htm

81 lines
No EOL
1.9 KiB
HTML

<!DOCTYPE html>
<html><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.htm" 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>&nbsp;</p>
</div>
<div class="region">
<p>&nbsp;</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">&nbsp;</div>
</div>
xxxx<br>
xxxx<br>
xxxx<br>
xxxx
</article>
</body></html>