servo/tests/wpt/css-tests/css-regions-1_dev/html/regions-transforms-020.htm

62 lines
No EOL
2 KiB
HTML

<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
<title>CSS Regions: Transformed region with named flow (fragmentable) content that breaks across multiple regions</title>
<link href="mailto:dalcala@adobe.com" rel="author" title="David Alcala">
<link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck">
<link href="mailto:mibalan@adobe.com" rel="reviewer" title="Mihai Balan"> <!-- 2013-07-24 -->
<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/css-transforms-1/#two-d-transform-functions" rel="help">
<link href="http://www.w3.org/TR/css3-break/#transforms" rel="help">
<link href="http://www.w3.org/TR/css3-break/#breaking-rules" rel="help">
<link href="reference/regions-transforms-020-ref.htm" rel="match">
<meta content="This test checks that the named flow content that is fragmentable (has a break point)
is transformed when it breaks across multiple regions." name="assert">
<style>
#named-flow {
width: 100px;
height: 100px;
flow-into: f;
}
.src-child {
height: 50px;
background-color: green;
}
.region {
width: 100px;
height: 50px;
margin-left: 10px;
float: left;
background-color: red;
flow-from: f;
transform: scaleY(2);
transform-origin: top left;
}
.failure-div {
position: absolute;
margin-left: 10px;
background-color: red;
width: 98px;
height: 98px;
}
.right {
left: 119px;
}
</style>
</head>
<body>
<p>The test passes if you see two green squares and no red.</p>
<div class="failure-div"></div>
<div class="failure-div right"></div>
<div id="named-flow">
<div class="src-child"></div>
<div class="src-child"></div>
</div>
<div class="region"></div>
<div class="region"></div>
</body></html>