mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
63 lines
No EOL
1.4 KiB
HTML
63 lines
No EOL
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: floats and non-floats content flowed in a shrink-to fit autosized region</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 an autosized region that has display: inline-block
|
|
is properly sized when the content flowed in it has both floats and non-floats elements." name="assert">
|
|
<link href="reference/floats-in-named-flow-023-ref.htm" rel="match">
|
|
<style>
|
|
article {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
color: blue;
|
|
}
|
|
.flow {
|
|
flow-into: f;
|
|
}
|
|
.float {
|
|
float: right;
|
|
color: green;
|
|
}
|
|
|
|
.region {
|
|
border: 10px solid black;
|
|
display: inline-block;
|
|
flow-from: f;
|
|
}
|
|
|
|
.region > p {
|
|
background: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
Test passes if you see two squares inside a black rectangular border. The left square
|
|
should be blue, the right square should be green, and the squares should be flush to one
|
|
another.<br>
|
|
You should see no red.
|
|
</p>
|
|
|
|
<div class="region">
|
|
<p> </p>
|
|
</div>
|
|
|
|
<article class="flow">
|
|
<span class="float">
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx
|
|
</span>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx
|
|
</article>
|
|
|
|
</body></html> |