servo/tests/wpt/css-tests/css-regions-1_dev/xhtml1/animations-001.xht

54 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>
<title>CSS Regions: animating content flowed into a region</title>
<link href="mailto:mibalan@adobe.com" rel="author" title="Mihai Balan" />
<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/#transform-functions" rel="help" />
<link href="http://www.w3.org/TR/css3-animations/#animations" rel="help" />
<meta content="Test checks that content that has an animated 3D transform renders and animates when flowed in a region." name="assert" />
<meta content="ahem animated" name="flags" />
<!-- TODO Determine if it's OK for this test to be a ref-test or it should only be a manual one. -->
<link href="reference/animations-001-ref.xht" rel="match" />
<link href="support/animations.css" rel="stylesheet" />
<style>
.transformed {
transform: rotateZ(45deg);
}
.flow {
flow-into: f;
color: green;
font-family: Ahem;
font-size: 20px;
line-height: 1em;
}
.region {
flow-from: f;
width: 100px;
height: 100px;
background-color: lightblue;
}
.region p {
background-color: red;
height: 50%;
}
</style>
</head>
<body>
<p>Test passes if you see a green square rotating once on top of a static blue square and no red.</p>
<div class="region">
<p>&#xA0;</p>
</div>
<div class="transformed flow rotate once">
xxxxx<br />
xxxxx<br />
xxxxx<br />
xxxxx<br />
xxxxx<br />
</div>
</body></html>