mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
55 lines
No EOL
1.6 KiB
HTML
55 lines
No EOL
1.6 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: separate floats as named flow contents</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="" name="flags" />
|
|
<meta content="Test checks that floats from different containers, individually
|
|
flowed in a region are floated relative to the region container and not their
|
|
initial container." name="assert" />
|
|
<link href="reference/floats-in-named-flow-003-ref.xht" rel="match" />
|
|
<style>
|
|
.flow {
|
|
flow-into: f;
|
|
color: gray;
|
|
}
|
|
.float {
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
.right {
|
|
float: right;
|
|
background: lightgreen;
|
|
}
|
|
.left {
|
|
float: left;
|
|
background: lightblue;
|
|
}
|
|
.region {
|
|
flow-from: f;
|
|
width: 150px;
|
|
margin: 5px;
|
|
background: yellow;
|
|
}
|
|
.region p {
|
|
background: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
Test passes if you see three squares, side by side, as follows: from left
|
|
to right, a light blue square, a yellow square and a light green square,
|
|
all flush to each other.<br />
|
|
Test fails is you see any red.
|
|
</p>
|
|
<!-- This inline style could possibly break the positioning in the float when flowed in the region -->
|
|
<div style="margin: auto; width: 50%;">
|
|
<div class="flow float right"></div>
|
|
</div>
|
|
<div class="flow float left"></div>
|
|
<div class="region">
|
|
<p> </p>
|
|
</div>
|
|
|
|
</body></html> |