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

49 lines
No EOL
1.5 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Regions: 3D transform on named flow (text) content that overflows a region</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 that is transformed does not clip when flowed in a region." name="assert">
<meta content="ahem" name="flags">
<link href="reference/regions-transforms-018-ref.htm" rel="match">
<style>
.ahem {
font-family: Ahem;
font-size: 20px;
line-height: 100px;
}
#named-flow {
flow-into: f;
transform: rotateZ(90deg);
color: green;
}
#region {
flow-from: f;
border-bottom: 20px solid green;
width: 100px;
height: 80px;
}
#failure {
position: absolute;
width: 18px;
height: 78px;
background-color: red;
top: 151px;
left: 49px;
z-index: -1;
}
</style>
</head>
<body>
<p>The test passes if you see a green cross and no red.</p>
<div class="ahem" id="named-flow">
XXXXXXXXX
</div>
<div id="region"></div>
<div id="failure"></div>
</body></html>