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

64 lines
No EOL
1.9 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Regions: float with relative sizing fragmented in differently sized 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 the fragments of floats with relative sizing
(width specified using percents) that are fragmented in regions with varying sizes
will be sized relative to each separate region." name="assert">
<link href="reference/floats-in-named-flow-024-ref.htm" rel="match">
<style>
article {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
color: green;
}
.flow {
flow-into: f;
}
.float {
width: 50%;
float: right;
color: blue;
}
.region {
width: 200px;
height: 100px;
border: 10px solid black;
margin-bottom: 10px;
flow-from: f;
}
.wide {
width: 400px;
}
.region > p {
background: red;
}
</style>
</head>
<body>
<p>
Test passes if you see two black bordered rectangles separated by a small vertical space.
The bottom rectangle should be twice as wide as the top one and both rectangles should
have the left half green and the right half blue.<br>
You should see no red.
</p>
<div class="region">
<p>&nbsp;</p>
</div>
<div class="wide region">
<p>&nbsp;</p>
</div>
<article class="flow">
<div class="float">xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;</div>
xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;xxxxx&#x200B;
</article>
</body></html>