1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>CSS Regions: Transforms on multiple named flow (text) content nodes that break across multiple regions</title>
<link rel="author" title="David Alcala" href="mailto:dalcala@adobe.com">
<link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
<link rel="reviewer" title="Mihai Balan" href="mailto:mibalan@adobe.com"> <!-- 2013-07-24 -->
<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#flow-from">
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions">
<link rel="help" href="http://www.w3.org/TR/css3-break/#transforms">
<link rel="match" href="reference/regions-transforms-020-ref.html">
<meta name="flags" content="ahem">
<meta name="assert" content="This test checks that separate transforms can be applied to each named flow content
text node that breaks across multiple regions">
<style>
.ahem {
font-family: Ahem;
font-size: 10px;
line-height: 20px;
}
.named-flow {
width: 100px;
color: green;
flow-into: f;
}
#named-flow-1 {
margin-left: -50px;
transform: translateX(50px);
}
#named-flow-2 {
transform: rotate(90deg);
}
.region {
width: 100px;
height: 100px;
margin-left: 10px;
float: left;
flow-from: f;
}
.failure {
width: 100px;
height: 100px;
position: absolute;
float: left;
margin-left: 10px;
background-color: green;
z-index: -1;
}
.left {
color: red;
}
.right {
left: 118px;
}
.vertical-bar {
width: 10px;
height: 100px;
float: left;
background-color: red;
margin-left: 5px;
margin-right: 5px;
}
</style>
</head>
<body>
<p>The test passes if you see two green squares and no red.</p>
<div class="ahem named-flow" id="named-flow-1">XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX</div>
<div class="ahem named-flow" id="named-flow-2">XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX</div>
<div class="region"></div>
<div class="region"></div>
<div class="ahem failure left">
XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX
</div>
<div class="ahem failure right">
<div class="vertical-bar"></div>
<div class="vertical-bar"></div>
<div class="vertical-bar"></div>
<div class="vertical-bar"></div>
<div class="vertical-bar"></div>
</div>
</body>
</html>
|