foreignObject-overflow-01.svg 864 B

12345678910111213141516171819202122232425
  1. <!--
  2. Any copyright is dedicated to the Public Domain.
  3. http://creativecommons.org/publicdomain/zero/1.0/
  4. -->
  5. <svg xmlns="http://www.w3.org/2000/svg" xmlns:html="http://www.w3.org/1999/xhtml">
  6. <title>Testcase: foreignObject should clip its content</title>
  7. <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=378897 -->
  8. <rect width="100%" height="100%" fill="red"/>
  9. <!-- Create the "pass" rect using a foreignObject so the testcase doesn't
  10. seem to pass if foreignObject is not supported -->
  11. <foreignObject width="100%" height="100%">
  12. <html:div style="display:block; height:100%; width:100%; background: lime;"/>
  13. </foreignObject>
  14. <!-- test 'overflow' -->
  15. <foreignObject x="-10" y="-10" width="10" height="10">
  16. <html:div style="display:block; height:10000px; width:10000px; background:red;"/>
  17. </foreignObject>
  18. </svg>