mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
65 lines
No EOL
1.3 KiB
HTML
65 lines
No EOL
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: float overflowing a fixed-sized 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 floats flowed in a fixed size region and
|
|
overflowing it do no interact with line boxes outside of the region. This is another
|
|
side effect of the fact that regions create block formatting contexts." name="assert">
|
|
<link href="reference/floats-in-named-flow-013-ref.htm" rel="match">
|
|
<style>
|
|
article {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
overflow: hidden;
|
|
}
|
|
.flow {
|
|
flow-into: f;
|
|
}
|
|
.float {
|
|
color: lightblue;
|
|
float: left;
|
|
}
|
|
.region {
|
|
flow-from: f;
|
|
width: 100px;
|
|
height: 40px;
|
|
}
|
|
|
|
.region > p {
|
|
background: red;
|
|
}
|
|
|
|
.error {
|
|
background: red;
|
|
width: 100px;
|
|
height: 60px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
Test passes if you see a blue square and no red.
|
|
</p>
|
|
|
|
<article>
|
|
<div class="flow float">
|
|
<div>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx
|
|
</div>
|
|
</div>
|
|
</article>
|
|
|
|
<div class="region">
|
|
<p> </p>
|
|
</div>
|
|
<div class="error">zambare</div>
|
|
|
|
|
|
</body></html> |