summaryrefslogtreecommitdiffstats
path: root/layout/svg/tests/file_filter_crossorigin.svg
diff options
context:
space:
mode:
Diffstat (limited to 'layout/svg/tests/file_filter_crossorigin.svg')
-rw-r--r--layout/svg/tests/file_filter_crossorigin.svg25
1 files changed, 25 insertions, 0 deletions
diff --git a/layout/svg/tests/file_filter_crossorigin.svg b/layout/svg/tests/file_filter_crossorigin.svg
new file mode 100644
index 0000000000..a1b9ad0cab
--- /dev/null
+++ b/layout/svg/tests/file_filter_crossorigin.svg
@@ -0,0 +1,25 @@
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+
+ <!-- We include these <use> elements simply to be sure the SVG resource URLs
+ get a chance to block 'onload', if they can be loaded. -->
+ <use xlink:href="http://mochi.test:8888/tests/layout/svg/tests/filters.svg#empty" />
+ <use xlink:href="http://example.org/tests/layout/svg/tests/filters.svg#empty" />
+
+ <!-- giant yellow rect in the background, just so you can visually tell
+ that this SVG file has loaded/rendered. -->
+ <rect height="100%" width="100%" fill="yellow" />
+
+ <!-- For both rects below: if it's black, its filter resolved successfully.
+ If it's yellow, it means we failed to load the resource
+ (e.g. because it was blocked as a cross-origin resource). -->
+ <rect height="50px" width="100px" fill="yellow"
+ filter="url(http://mochi.test:8888/tests/layout/svg/tests/filters.svg#NonWhiteToBlack)"/>
+ <rect y="50px"
+ height="50px" width="100px" fill="yellow"
+ filter="url(http://example.org/tests/layout/svg/tests/filters.svg#NonWhiteToBlack)"/>
+</svg>