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

57 lines
No EOL
1.8 KiB
HTML

<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
<title>CSS Regions: Multiple transformed named flow content nodes that overflow a region</title>
<link href="mailto:dalcala@adobe.com" rel="author" title="David Alcala">
<link href="mailto:rhauck@adobe.com" rel="reviewer" title="Rebecca Hauck"> <!-- 07-15-2013 -->
<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="reference/regions-transforms-017-ref.htm" rel="match">
<meta content="This test checks that multiple named flow content nodes are transformed into a region
and that the overflow remains visible." name="assert">
<style>
#named-flow-parent {
width: 100px;
height: 100px;
flow-into: f;
transform: scaleY(2);
transform-origin: top left;
}
#named-flow-1 {
width: 100px;
height: 50px;
background-color: green;
}
#named-flow-2 {
width: 100px;
height: 50px;
background-color: blue;
}
#region {
width: 100px;
height: 100px;
background-color: red;
flow-from: f;
}
#failure {
position: absolute;
background-color: red;
width: 98px;
height: 98px;
top: 151px;
left: 9px;
z-index: -1;
}
</style>
</head>
<body>
<p>The test passes if you see a green square and a blue square below it, and no red.</p>
<div id="failure"></div>
<div id="named-flow-parent">
<div id="named-flow-1"></div>
<div id="named-flow-2"></div>
</div>
<div id="region"></div>
</body></html>