mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
63 lines
No EOL
1.9 KiB
HTML
63 lines
No EOL
1.9 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>
|
|
<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.xht" 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> |