mirror of
https://github.com/servo/servo.git
synced 2025-07-10 08:53:41 +01:00
60 lines
No EOL
1.6 KiB
HTML
60 lines
No EOL
1.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
<title>CSS Test: flowing content in regions that are absolutely positioned and have visual overflow</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/#flow-from" rel="help" />
|
|
<meta content="ahem" name="flags" />
|
|
<meta content="Test checks that region's visual overflow is displayed when region
|
|
is absolutely positioned and has visual overflow." name="assert" />
|
|
<link href="reference/regions-layers-003-ref.xht" rel="match" />
|
|
<style>
|
|
#content {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
color: green;
|
|
flow-into: f;
|
|
}
|
|
#behind-region {
|
|
background-color: red;
|
|
width: 100px;
|
|
height: 100px;
|
|
position: absolute;
|
|
top: 100px;
|
|
left: 60px;
|
|
}
|
|
#region {
|
|
position: absolute;
|
|
top: 100px;
|
|
left: 50px;
|
|
width: 100px;
|
|
height: 50px;
|
|
border: 10px solid lime;
|
|
border-bottom-width: 0;
|
|
flow-from: f;
|
|
}
|
|
#region p {
|
|
height: 50%;
|
|
background-color: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ol>
|
|
<li>You should see no red.</li>
|
|
<li>Test passes if you see a dark green square with a light green border around its top half.</li>
|
|
</ol>
|
|
<div id="content">
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx
|
|
</div>
|
|
<div id="behind-region"></div>
|
|
<div id="region">
|
|
<p> </p>
|
|
</div>
|
|
|
|
</body></html> |