mirror of
https://github.com/servo/servo.git
synced 2025-06-28 11:03:39 +01:00
43 lines
No EOL
1.7 KiB
HTML
43 lines
No EOL
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: flowing a video in 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">
|
|
<meta content="Test checks videos flowed in regions render smoothly and without artifacts." name="assert">
|
|
<style>
|
|
.flow {
|
|
flow-into: f;
|
|
}
|
|
|
|
.region {
|
|
flow-from: f;
|
|
width: 400px;
|
|
height: 300px;
|
|
}
|
|
.region p {
|
|
background-color: red;
|
|
height: 50%;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>Test passes if you see two identical videos playing smoothly.<br>
|
|
Test fails if you see a red rectangle or if videos are out of sync.</p>
|
|
|
|
<video width="432" muted="" autoplay="" class="flow" controls="" height="240">
|
|
<source src="support/big-buck-bunny-240p.mp4" type="video/mp4">
|
|
<source src="support/big-buck-bunny-240p.webm" type="video/webm">
|
|
<source src="support/big-buck-bunny-240p.ogv" type="video/ogg">
|
|
</video>
|
|
<video width="432" height="240" controls="" autoplay="">
|
|
<source src="support/big-buck-bunny-240p.mp4" type="video/mp4">
|
|
<source src="support/big-buck-bunny-240p.webm" type="video/webm">
|
|
<source src="support/big-buck-bunny-240p.ogv" type="video/ogg">
|
|
</video>
|
|
<div class="region">
|
|
<p> </p>
|
|
</div>
|
|
|
|
</body></html> |