servo/tests/wpt/css-tests/css-regions-1_dev/xhtml1/regions-transforms-006.xht

53 lines
No EOL
2.1 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: 3D transform on region with named flow (text) content that overflows</title>
<link href="mailto:mibalan@adobe.com" rel="author" title="Mihai Balan" />
<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/#three-d-transform-functions" rel="help" />
<meta content="Test checks that content flowed in a region and overflowing it is still rendered
if the region has a 3D transform applied." name="assert" />
<meta content="ahem" name="flags" />
<link href="reference/regions-transforms-001-ref.xht" rel="match" />
<style>
.ahem {
font-family: Ahem;
font-size: 20px;
line-height: 20px;
}
#named-flow {
flow-into: f;
width: 100px;
height: 100px;
color: red;
background-color: green;
}
#region {
flow-from: f;
transform: rotateZ(90deg);
transform-origin: bottom right;
width: 50px;
height: 50px;
background-color: green;
}
#green-rect {
position: absolute;
width: 20px;
height: 100px;
background-color: green;
top: 50px;
left: 88px;
}
</style>
</head>
<body>
<p>The test passes if you see a green square and no red.</p>
<div id="region"></div>
<div class="ahem" id="named-flow">XXXXX</div>
<div id="green-rect"></div>
</body></html>