-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathreplaced-element-027.html
More file actions
22 lines (20 loc) · 906 Bytes
/
replaced-element-027.html
File metadata and controls
22 lines (20 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<title>CSS aspect-ratio: video with aspect-ratio and contain:size</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://un5gmtkzgj4bq3uede8f6wr.julianrbryant.com/">
<link rel="help" href="https://un5n798jx6qx6j0rmf2verhh.julianrbryant.com/css-sizing-4/#aspect-ratio">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5550">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="This test verifies aspect-ratio's <ratio> is used to determine the video's size because contain:size enforces no intrinsic aspect ratio.">
<style>
video {
width: 100px;
aspect-ratio: 1/1;
object-fit: fill;
contain: size;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<video poster="support/20x50-green.png"></video>
</html>