mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
51 lines
No EOL
1.9 KiB
HTML
51 lines
No EOL
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: Transforms on both the named flow content and the region</title>
|
|
<link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck">
|
|
<link href="mailto:mibalan@adobe.com" rel="reviewer author" 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/#two-d-transform-functions" rel="help">
|
|
<meta content="ahem" name="flags">
|
|
<meta content="Test checks that if both the content flowed in a region and the region have a
|
|
transform applied, they are properly composed. More specifically, in this test
|
|
the content should appear as rotated 180 degrees." name="assert">
|
|
<link href="reference/regions-transforms-001-ref.htm" rel="match">
|
|
<style>
|
|
.ahem {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 20px;
|
|
}
|
|
#named-flow {
|
|
flow-into: f;
|
|
transform: rotate(90deg);
|
|
width: 100px;
|
|
height: 100px;
|
|
color: red;
|
|
background-color: green;
|
|
}
|
|
#region {
|
|
flow-from: f;
|
|
transform: rotate(90deg);
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
#green-rect {
|
|
position: absolute;
|
|
width: 100px;
|
|
height: 20px;
|
|
background-color: green;
|
|
top: 130px;
|
|
left: 8px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>The test passes if you see a green square and no red.</p>
|
|
<div class="ahem" id="named-flow">XXXXX</div>
|
|
<div id="region"></div>
|
|
<div id="green-rect"></div>
|
|
|
|
|
|
</body></html> |