mirror of
https://github.com/servo/servo.git
synced 2025-07-10 00:43:39 +01:00
51 lines
No EOL
1.1 KiB
HTML
51 lines
No EOL
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: single auto-sized floated 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="" name="flags">
|
|
<meta content="Test checks that a single auto-sized region is properly sized,
|
|
according both to the regions processing model and the specifics of floats sizing." name="assert">
|
|
<link href="reference/floated-regions-003-ref.htm" rel="match">
|
|
<style>
|
|
article {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
color: green;
|
|
}
|
|
.flow {
|
|
flow-into: f;
|
|
}
|
|
|
|
.region {
|
|
flow-from: f;
|
|
}
|
|
.region p {
|
|
background: red;
|
|
}
|
|
|
|
.float {
|
|
float: left;
|
|
border: 10px solid black;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
Test passes if you see a green square with a thick black outline.<br>
|
|
You should see no red.
|
|
</p>
|
|
|
|
<div class="region float"></div>
|
|
|
|
<article class="flow">
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx
|
|
</article>
|
|
|
|
|
|
</body></html> |