video-default-object-width-constrained-by-max-height.html (732B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta name="assert" content="Video that has no intrinsic size should have width constrained by max-height"> 5 <link rel="help" href="https://w3c.github.io/csswg-drafts/css-sizing-4/#aspect-ratio-size-transfers"> 6 <link author="Sammy Gill" href="mailto:sammy.gill@apple.com"> 7 <link rel="match" href="/css/reference/ref-filled-green-100px-square.xht"> 8 <style> 9 video { 10 background-color: green; 11 width: auto; 12 height: auto; 13 max-height: 100px; 14 } 15 </style> 16 </head> 17 <!-- aspect-ratio should be set to: auto 100 / 100--> 18 <body> 19 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 20 <video width="100" height="100" src="/css/support/60x60-green.png"> 21 </body> 22 </html>