mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
88 lines
No EOL
2 KiB
HTML
88 lines
No EOL
2 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: padding around float and non-float content</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 paddings for floats and non-floats are properly
|
|
computed when they are flowed in shrink-to-fit regions." name="assert">
|
|
<link href="reference/floats-in-named-flow-032-ref.htm" rel="match">
|
|
<style>
|
|
article {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
}
|
|
|
|
.flow {
|
|
flow-into: f;
|
|
}
|
|
|
|
.float {
|
|
float: left;
|
|
color: blue;
|
|
padding: 1em 2em 3em 4em;
|
|
}
|
|
|
|
.outer-container {
|
|
/* display: inline-block; to trigger shrink to fit sizing */
|
|
display: inline-block;
|
|
border: 10px solid black;
|
|
}
|
|
|
|
.regions-container {
|
|
padding: 20px 15px 10px 5px;
|
|
}
|
|
|
|
.content {
|
|
padding: 2px 4px 8px 16px;
|
|
color: green;
|
|
}
|
|
|
|
.region {
|
|
flow-from: f;
|
|
}
|
|
|
|
.region > p {
|
|
background: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
<!-- TODO Determine what the outcome should be - currently expecting a resolution on
|
|
the issue on www-style/css3-break -->
|
|
Test passes if you see two colored squares inside a black-bordered rectangle.<br>
|
|
The first (top to bottom) square should be blue, while the second should be green.<br>
|
|
The blue square should be roughly horizontally centered and the green square should be
|
|
near the bottom left corner of the rectangle. Neither square should touch the black border.<br>
|
|
You should see no red.
|
|
</p>
|
|
|
|
<div class="outer-container">
|
|
<div class="regions-container">
|
|
<div class="region">
|
|
<p> </p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<article class="flow">
|
|
<div class="float">
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx
|
|
</div>
|
|
<div class="content">
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx
|
|
</div>
|
|
</article>
|
|
|
|
|
|
</body></html> |