mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
64 lines
No EOL
2 KiB
HTML
64 lines
No EOL
2 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: perspective set on the named flow content's parent does not apply when content flows into region</title>
|
|
<link href="mailto:mibalan@adobe.com" rel="author" title="Mihai Balan">
|
|
<link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck">
|
|
<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="http://www.w3.org/TR/css-transforms-1/#perspective-property" rel="help">
|
|
<!-- TODO: Link to fragmentation spec section about perspective, fragments and fragmentainers -
|
|
once this gets in the spec. -->
|
|
<meta content="Test checks that content that has a 3D transform does not respect the perspective
|
|
set on its parent when flowed into a region." name="assert">
|
|
<meta content="ahem" name="flags">
|
|
<link href="reference/regions-transforms-001-ref.htm" rel="match">
|
|
<style>
|
|
.ahem {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
}
|
|
#parent {
|
|
width: 100px;
|
|
height: 100px;
|
|
perspective: 800px;
|
|
}
|
|
#named-flow {
|
|
flow-into: f;
|
|
transform: rotateY(85deg);
|
|
color: red;
|
|
}
|
|
#region {
|
|
flow-from: f;
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: green;
|
|
}
|
|
#green-rect {
|
|
position: absolute;
|
|
top: 50px;
|
|
left: 53px;
|
|
width: 10px;
|
|
height: 100px;
|
|
background-color: green;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>The test passes if you see a green square and no red.</p>
|
|
<div id="region"></div>
|
|
<div id="parent">
|
|
<div class="ahem" id="named-flow">
|
|
XXXXX<br>
|
|
XXXXX<br>
|
|
XXXXX<br>
|
|
XXXXX<br>
|
|
XXXXX<br>
|
|
</div>
|
|
</div>
|
|
<!-- If the red content is properly transformed, it will be hidden beneath this green div -->
|
|
<div id="green-rect"></div>
|
|
|
|
|
|
</body></html> |