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

63 lines
No EOL
1.7 KiB
HTML

<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
<title>CSS Regions: Transformed region using a 3D transform</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/#three-d-transform-functions" rel="help">
<link href="reference/regions-transforms-001-ref.htm" rel="match">
<meta content="This test checks that a 3D transform can be applied to a region" name="assert">
<style>
#named-flow {
width: 75px;
height: 75px;
background-color: red;
border-top: 25px solid green;
border-right: 25px solid green;
flow-into: f;
}
#region {
width: 100px;
height: 100px;
margin
background-color: red;
flow-from: f;
transform: rotate3d(1,1,0,180deg);
}
#square {
position: absolute;
left: 33px;
top: 50px;
width: 75px;
height: 75px;
background-color: green;
}
#failure1, #failure2 {
position: absolute;
background-color: red;
}
#failure1 {
width: 25px;
height: 100px;
}
#failure2 {
width: 100px;
height: 25px;
top: 125px;
}
</style>
</head>
<body>
<p>The test passes if you see a green square and no red.</p>
<div id="failure1"></div>
<div id="failure2"></div>
<div id="named-flow"></div>
<div id="region"></div>
<div id="square"></div>
</body></html>