element-paint-background-size-02-ref.html 642 B

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