mirror of
https://github.com/servo/servo.git
synced 2025-07-10 00:43:39 +01:00
89 lines
No EOL
2 KiB
HTML
89 lines
No EOL
2 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: multiple auto-sized floated 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">
|
|
<link href="http://www.w3.org/TR/css3-regions/#regions-visual-formatting-details" rel="help">
|
|
<meta content="" name="flags">
|
|
<meta content="Test checks that multiple regions that are auto-sized and floated
|
|
are sized according to the auto-size algorithm but also respect the floats sizing model.
|
|
They should also be properly floated relative to their corresponding block formatting
|
|
context." name="assert">
|
|
<link href="reference/floated-regions-001-ref.htm" rel="match">
|
|
<style>
|
|
article {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
}
|
|
.flow {
|
|
flow-into: f;
|
|
}
|
|
.blue {
|
|
color: blue;
|
|
border-color: blue;
|
|
}
|
|
.green {
|
|
color: green;
|
|
border-color: green;
|
|
}
|
|
.break {
|
|
break-before: region;
|
|
}
|
|
|
|
#region-container {
|
|
border: 10px solid black;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.region {
|
|
flow-from: f;
|
|
}
|
|
.region p {
|
|
background: red;
|
|
}
|
|
.right {
|
|
border-left-width: 20px;
|
|
border-left-style: solid;
|
|
float: right;
|
|
}
|
|
.left {
|
|
border-right-width: 20px;
|
|
border-right-style: solid;
|
|
float: left;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
Test passes if you see a horizontal, black-bordered rectangle with a green square at its
|
|
left end and a blue square at its right end. The rectangle should be approximately as
|
|
wide as the page.<br>
|
|
You should see no red.
|
|
</p>
|
|
<div id="region-container">
|
|
<div class="region right blue">
|
|
<p> </p>
|
|
</div>
|
|
<div class="region left green">
|
|
<p> </p>
|
|
</div>
|
|
</div>
|
|
<article class="flow">
|
|
<div class="blue">
|
|
xxxx<br>
|
|
xxxx<br>
|
|
xxxx<br>
|
|
xxxx<br>
|
|
xxxx
|
|
</div>
|
|
<div class="green break">
|
|
xxxx<br>
|
|
xxxx<br>
|
|
xxxx<br>
|
|
xxxx<br>
|
|
xxxx
|
|
</div>
|
|
</article>
|
|
|
|
</body></html> |