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

41 lines
No EOL
1.7 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 named flow (non-text) content with transform-origin and position: absolute</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="reference/regions-transforms-014-ref.xht" rel="match" />
<meta content="This test checks that the transform and transform-origin are applied to named flow
content that flows into a region with absolute positioning." name="assert" /><style>
#named-flow {
width: 50px;
height: 50px;
background-color: green;
transform: scale(2);
flow-into: f;
/* need to use transform-origin, otherwise scale will cause the green square to grow past the left &amp; top
edges of the region box */
transform-origin: left top;
}
#region {
width: 100px;
height: 100px;
position: absolute;
left: 58px;
top: 100px;
z-index: 4;
background-color: red;
flow-from: f;
}
</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>