mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
40 lines
No EOL
1.4 KiB
HTML
40 lines
No EOL
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<meta charset="UTF-8">
|
|
<title>CSS Regions: Transform region with position:absolute and transform-origin</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="http://www.w3.org/TR/css-transforms-1/#transform-origin-property" rel="help">
|
|
<link href="reference/regions-transforms-014-ref.htm" rel="match">
|
|
<meta content="This test checks that the transform and transform-origin are applied to a region
|
|
with absolute positioning." name="assert">
|
|
<style>
|
|
#named-flow {
|
|
width: 50px;
|
|
height: 50px;
|
|
background-color: green;
|
|
flow-into: f;
|
|
}
|
|
#region {
|
|
width: 50px;
|
|
height: 50px;
|
|
background-color: red;
|
|
position: absolute;
|
|
left: 58px;
|
|
top: 100px;
|
|
flow-from: f;
|
|
transform: scale(2);
|
|
transform-origin: left top;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>The test passes if you see a green square and no red.</p>
|
|
<div id="named-flow"></div>
|
|
<div id="region"></div>
|
|
|
|
|
|
</body></html> |