element-paint-transform-repeated.html 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <!--
  2. Any copyright is dedicated to the Public Domain.
  3. http://creativecommons.org/licenses/publicdomain/
  4. Test a repeated background with some transform.
  5. The transform scales up which causes blurring, so
  6. we use an SVG filter to get rid of it.
  7. -->
  8. <html>
  9. <body style="filter:url(#thresholdAt128)">
  10. <div style="width:80px; height:80px; border: 1px solid black;
  11. background: 7px 7px -moz-element(#d);
  12. -moz-transform:matrix(2,0,0,2,50,50);">
  13. </div>
  14. <div style="overflow:hidden; height:0;">
  15. <div id="d" style="border:10px solid white; width:20px; height:20px;
  16. background:black;"></div>
  17. </div>
  18. <svg>
  19. <filter id="thresholdAt128" color-interpolation-filters="sRGB">
  20. <feComponentTransfer>
  21. <feFuncR type="linear" slope="255" intercept="-128"/>
  22. <feFuncG type="linear" slope="255" intercept="-128"/>
  23. <feFuncB type="linear" slope="255" intercept="-128"/>
  24. </feComponentTransfer>
  25. </filter>
  26. </svg>
  27. </body>
  28. </html>