element-paint-background-size-02.html 825 B

12345678910111213141516171819202122232425262728
  1. <!--
  2. Any copyright is dedicated to the Public Domain.
  3. http://creativecommons.org/licenses/publicdomain/
  4. Test with background-size.
  5. -->
  6. <html>
  7. <body style="filter:url(#thresholdAt128);">
  8. <div style="width:80px; height:80px; border:1px solid black;
  9. background:-moz-element(#d) no-repeat;
  10. background-size:100%"></div>
  11. <div style="overflow:hidden; height:0;">
  12. <div id="d" style="border:10px solid red; width:20px; height:20px;
  13. background:yellow;"></div>
  14. </div>
  15. <svg>
  16. <filter id="thresholdAt128" color-interpolation-filters="sRGB">
  17. <feColorMatrix type="matrix"
  18. values="255 0 0 0 -128
  19. 0 255 0 0 -128
  20. 0 0 255 0 -128
  21. 0 0 0 255 -128"/>
  22. </filter>
  23. </svg>
  24. </body>
  25. </html>