object-position-webm-001.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/publicdomain/zero/1.0/
  5. -->
  6. <html>
  7. <head>
  8. <meta charset="utf-8">
  9. <title>CSS Test: various 'object-position' values on a fixed-size video element, with a WebM video and 'object-fit:contain'.</title>
  10. <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
  11. <link rel="help" href="http://www.w3.org/TR/css3-images/#sizing">
  12. <link rel="help" href="http://www.w3.org/TR/css3-images/#the-object-fit">
  13. <link rel="help" href="http://www.w3.org/TR/css3-images/#the-object-position">
  14. <link rel="match" href="object-position-webm-001-ref.html">
  15. <style type="text/css">
  16. video {
  17. background: lightgray;
  18. margin-right: 2px;
  19. object-fit: contain;
  20. float: left;
  21. width: 20px;
  22. height: 20px;
  23. }
  24. .op_y-7 { object-position: 50% -7% }
  25. .op_y13 { object-position: 50% 13% }
  26. .op_y23 { object-position: 50% 23% }
  27. .op_y50 { object-position: 50% 50% }
  28. .op_y75 { object-position: 50% 75% }
  29. .op_y88 { object-position: 50% 88% }
  30. .op_y111 { object-position: 50% 111% }
  31. </style>
  32. </head>
  33. <body>
  34. <video src="colors-16x8.webm" class="op_y-7"></video>
  35. <video src="colors-16x8.webm" class="op_y13"></video>
  36. <video src="colors-16x8.webm" class="op_y23"></video>
  37. <video src="colors-16x8.webm" class="op_y50"></video>
  38. <video src="colors-16x8.webm" class="op_y75"></video>
  39. <video src="colors-16x8.webm" class="op_y88"></video>
  40. <video src="colors-16x8.webm" class="op_y111"></video>
  41. </body>
  42. </html>