servo/tests/wpt/css-tests/css-break-3_dev/xhtml1/position-relative-001.xht

77 lines
No EOL
2.4 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 Regions: flowing content that has position: relative</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" />
<!-- Section points to section in the ED. Eventually this should be kept in the WD, too. -->
<link href="http://www.w3.org/TR/css3-break/#transforms" rel="help" />
<meta content="Test checks that fragments of content flowed in regions are positioned independently, after the fragmentation occurs." name="assert" />
<meta content="ahem" name="flags" />
<link href="reference/position-relative-001-ref.xht" rel="match" />
<style>
.flow {
flow-into: f;
font-family: Ahem;
font-size: 20px;
line-height: 1em;
color: green;
position: relative;
top: 20px;
left: -20px;
}
.container {
display: inline-block;
}
.region {
flow-from: f;
margin: 0 0 0 20px;
}
.region p {
background-color: red;
height: 50%;
}
.big {
width: 100px;
height: 100px;
}
.small {
width: 60px;
height: 60px;
}
.marker {
background: red;
width: 20px;
height: 20px;
}
</style>
</head>
<body>
<p>Test passes if you see two green squares (one bigger and one smaller) and no red.</p>
<div class="flow">
xxxxx
xxxxx
xxxxx
xxxxx
xxxxx
xxx
xxx
xxx
</div>
<div class="container">
<div class="big region">
<p>&#xA0;</p>
</div>
<div class="marker"></div>
</div>
<div class="container">
<div class="small region">
<p>&#xA0;</p>
</div>
<div class="marker"></div>
</div>
</body></html>