servo/tests/wpt/css-tests/css-multicol-1_dev/html4/regions-multicol-013.htm

80 lines
No EOL
2.6 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Test: One named flow, text content flowing into multiple regions
fragmented across multiple columns and overflowing the last region</title>
<link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck">
<!-- Reviewed on Github on 09-26-2013: https://github.com/w3c/csswg-test/pull/89 -->
<link href="mailto:mibalan@adobe.com" rel="reviewer" 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">
<link href="http://www.w3.org/TR/css3-multicol/#columns" rel="help">
<link href="reference/regions-multicol-013-ref.htm" rel="match">
<meta content="ahem" name="flags">
<meta content="This test checks that the named flow text
content flows through the regions in the
multi-column container and that it overflows
visibly into a fourth column." name="assert">
<style type="text/css">
#named-flow {
font-family: Ahem;
font-size: 25px;
line-height: 1em;
color: green;
flow-into: multicol;
}
#multicol-container {
position: absolute;
top: 50px;
left: 20px;
width: 170px;
height: 200px;
columns: 3;
column-gap: 10px;
}
#region-1 , #region-2, #region-3 {
width: 50px;
height: 200px;
flow-from: multicol;
}
.failure {
position: absolute;
background-color: red;
top: 50px;
width: 50px;
height: 200px;
z-index: -1;
}
#bar-1 {
left: 20px;
}
#bar-2 {
left: 80px;
}
#bar-3 {
left: 140px;
}
#bar-4 {
left: 200px;
}
</style>
</head>
<body>
<p>The test passes if there are four green vertical bars and no red.</p>
<div id="named-flow">
XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX
</div>
<div id="multicol-container">
<div id="region-1"></div>
<div id="region-2"></div>
<div id="region-3"></div>
</div>
<div id="bar-1" class="failure"></div>
<div id="bar-2" class="failure"></div>
<div id="bar-3" class="failure"></div>
<div id="bar-4" class="failure"></div>
</body></html>