object-fit-cover-png-001-ref.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 Reftest Reference</title>
  10. <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
  11. <style type="text/css">
  12. .objectOuter {
  13. border: 1px dashed gray;
  14. padding: 1px;
  15. float: left;
  16. }
  17. .objectOuter > * {
  18. background-image: url("colors-16x8.png");
  19. background-size: cover;
  20. background-repeat: no-repeat;
  21. image-rendering: -moz-crisp-edges;
  22. }
  23. .bigWide {
  24. width: 48px;
  25. height: 32px;
  26. }
  27. .bigTall {
  28. width: 32px;
  29. height: 48px;
  30. }
  31. .small {
  32. width: 8px;
  33. height: 8px;
  34. }
  35. br { clear: both; }
  36. .tr { background-position: top right }
  37. .bl { background-position: bottom left }
  38. .tl { background-position: top 25% left 25% }
  39. .br { background-position: bottom 1px right 2px }
  40. .tc { background-position: top 3px center }
  41. .cr { background-position: center right 25% }
  42. .default { background-position: 50% 50% }
  43. </style>
  44. </head>
  45. <body>
  46. <!-- big/wide: -->
  47. <div class="objectOuter"><div class="bigWide tr"></div></div>
  48. <div class="objectOuter"><div class="bigWide bl"></div></div>
  49. <div class="objectOuter"><div class="bigWide tl"></div></div>
  50. <div class="objectOuter"><div class="bigWide br"></div></div>
  51. <div class="objectOuter"><div class="bigWide tc"></div></div>
  52. <div class="objectOuter"><div class="bigWide cr"></div></div>
  53. <div class="objectOuter"><div class="bigWide default"></div></div>
  54. <br>
  55. <!-- big/tall: -->
  56. <div class="objectOuter"><div class="bigTall tr"></div></div>
  57. <div class="objectOuter"><div class="bigTall bl"></div></div>
  58. <div class="objectOuter"><div class="bigTall tl"></div></div>
  59. <div class="objectOuter"><div class="bigTall br"></div></div>
  60. <div class="objectOuter"><div class="bigTall tc"></div></div>
  61. <div class="objectOuter"><div class="bigTall cr"></div></div>
  62. <div class="objectOuter"><div class="bigTall default"></div></div>
  63. <br>
  64. <!-- small: -->
  65. <div class="objectOuter"><div class="small tr"></div></div>
  66. <div class="objectOuter"><div class="small bl"></div></div>
  67. <div class="objectOuter"><div class="small tl"></div></div>
  68. <div class="objectOuter"><div class="small br"></div></div>
  69. <div class="objectOuter"><div class="small tc"></div></div>
  70. <div class="objectOuter"><div class="small cr"></div></div>
  71. <div class="objectOuter"><div class="small default"></div></div>
  72. <br>
  73. </body>
  74. </html>