Bug 1467622 - P5: Reftests for SVG pserver currentcolor override. r?heycam
MozReview-Commit-ID: 3yG2VarZvdr
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -184410,16 +184410,52 @@
[
"/svg/linking/reftests/use-descendant-combinator-ref.html",
"=="
]
],
{}
]
],
+ "svg/painting/currentColor-override-pserver-fallback.svg": [
+ [
+ "/svg/painting/currentColor-override-pserver-fallback.svg",
+ [
+ [
+ "/svg/painting/currentColor-override-pserver-fallback-ref.svg",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "svg/painting/currentColor-override-pserver-fill.svg": [
+ [
+ "/svg/painting/currentColor-override-pserver-fill.svg",
+ [
+ [
+ "/svg/painting/currentColor-override-pserver-fill-ref.svg",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "svg/painting/currentColor-override-pserver-stroke.svg": [
+ [
+ "/svg/painting/currentColor-override-pserver-stroke.svg",
+ [
+ [
+ "/svg/painting/currentColor-override-pserver-stroke-ref.svg",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"svg/painting/reftests/paint-context-001.svg": [
[
"/svg/painting/reftests/paint-context-001.svg",
[
[
"/svg/painting/reftests/paint-context-001-ref.svg",
"=="
]
@@ -298316,16 +298352,36 @@
{}
]
],
"svg/linking/scripted/testcommon.js": [
[
{}
]
],
+ "svg/painting/OWNERS": [
+ [
+ {}
+ ]
+ ],
+ "svg/painting/currentColor-override-pserver-fallback-ref.svg": [
+ [
+ {}
+ ]
+ ],
+ "svg/painting/currentColor-override-pserver-fill-ref.svg": [
+ [
+ {}
+ ]
+ ],
+ "svg/painting/currentColor-override-pserver-stroke-ref.svg": [
+ [
+ {}
+ ]
+ ],
"svg/painting/reftests/paint-context-001-ref.svg": [
[
{}
]
],
"svg/painting/reftests/paint-context-002-ref.svg": [
[
{}
@@ -553514,25 +553570,25 @@
"956e5156fd8c0e75b1c0f3b8b3b900b653663f74",
"support"
],
"css/cssom-view/support/test-tr.png": [
"078e1dd6dd61d36cec239ed75d02051f61fe60a5",
"support"
],
"css/cssom-view/table-client-props.html": [
- "54115121d05823e9317f68de5fdad4a03b94bd19",
+ "92dd07645a8ce7ef71eec2459d8aa91085720390",
"testharness"
],
"css/cssom-view/table-offset-props.html": [
- "7327b44c0f8ed0c8ff2d4a36b89255eca85a064f",
+ "c9a06fbd38d57b2d25f0922a7ce09bbd8ca871dc",
"testharness"
],
"css/cssom-view/table-scroll-props.html": [
- "f8a18c1a89a24551113eebed4937729a5a581de8",
+ "47e55907361861a931c1c12bbde64b6bef46d927",
"testharness"
],
"css/cssom-view/ttwf-js-cssomview-getclientrects-length.html": [
"7f3440e65abbe692e3c28f1f1d04671054ecc815",
"testharness"
],
"css/cssom-view/window-screen-height-immutable.html": [
"3193a200624217a260e17660006e9ce31a52814c",
@@ -622181,16 +622237,44 @@
"svg/linking/scripted/testScripts/externalScript2.js": [
"6360f077307c4d532d06105ef2830876eb8642ee",
"support"
],
"svg/linking/scripted/testcommon.js": [
"1367de727c679521d6b7237b97b86c5516e9363c",
"support"
],
+ "svg/painting/OWNERS": [
+ "793bbbcd7b50cd21b5ba5895ab97fa8ae23522d2",
+ "support"
+ ],
+ "svg/painting/currentColor-override-pserver-fallback-ref.svg": [
+ "ecfd31db61525a01eeb7d40e9d46d88508096fb6",
+ "support"
+ ],
+ "svg/painting/currentColor-override-pserver-fallback.svg": [
+ "5ebc8cafe14d0cab8db3a47878c6f299ed4c0645",
+ "reftest"
+ ],
+ "svg/painting/currentColor-override-pserver-fill-ref.svg": [
+ "6a534c27b80b2e2a28611243da3aa35662d0fb27",
+ "support"
+ ],
+ "svg/painting/currentColor-override-pserver-fill.svg": [
+ "9fa970bd0f2e2d059094408b0f7a42d430b938f2",
+ "reftest"
+ ],
+ "svg/painting/currentColor-override-pserver-stroke-ref.svg": [
+ "9aa1ab0d77e12ae86ad2d10c9e38d93eda9a89e5",
+ "support"
+ ],
+ "svg/painting/currentColor-override-pserver-stroke.svg": [
+ "d8e578f5422229b37676ecdc7146488ac0865eaf",
+ "reftest"
+ ],
"svg/painting/reftests/paint-context-001-ref.svg": [
"d7e12d36f0b3168c677edf95ce401b3e1e5eccbe",
"support"
],
"svg/painting/reftests/paint-context-001.svg": [
"d39d2988c685db29c1487e800f12e9ebea02ceac",
"reftest"
],
@@ -624714,17 +624798,17 @@
"f3e48d8ddd42f1eecb36af2a8e1cfade6d0a02d4",
"testharness"
],
"web-animations/animation-model/animation-types/interpolation-per-property.html": [
"ab09cd8b77d05a1036f9976c3f0e92a6d9e183f3",
"testharness"
],
"web-animations/animation-model/animation-types/property-list.js": [
- "a6c524f515065db203ae5395f699b857eb279cd4",
+ "f40a685eda7a9dd97fb34f6c3bfe365e0c06beca",
"support"
],
"web-animations/animation-model/animation-types/property-types.js": [
"ecfe1d54d687bc6d0541b4a8c5ca9cf82c4d129e",
"support"
],
"web-animations/animation-model/animation-types/visibility.html": [
"da3370704ca9e83a1171a64320a240e3145fab2c",
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/svg/painting/OWNERS
@@ -0,0 +1,1 @@
+@kamidphish
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/svg/painting/currentColor-override-pserver-fallback-ref.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg">
+ <!-- pattern inherits fill color via currentcolor -->
+ <circle stroke="black" fill="limegreen" cx="50" cy="50" r="40" />
+</svg>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/svg/painting/currentColor-override-pserver-fallback.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg">
+ <metadata>
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="author" title="Dan Glastonbury" href="mailto:dglastonbury@mozilla.com"/>
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://www.w3.org/TR/SVG2/pservers.html"/>
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="match" href="currentColor-override-pserver-fallback-ref.svg"/>
+ <meta xmlns="http://www.w3.org/1999/xhtml" name="assert" content="missing pattern fallback inherits fill color via currentcolor."/>
+ </metadata>
+
+ <g fill="url(#NotFound) currentcolor" color="red">
+ <circle color="limegreen" stroke="black" cx="50" cy="50" r="40" />
+ </g>
+</svg>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/svg/painting/currentColor-override-pserver-fill-ref.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg">
+ <!-- pattern inherits fill color via currentcolor -->
+ <defs>
+ <pattern id="MyPattern" patternUnits="userSpaceOnUse"
+ x="5" y ="5" width="10" height="10">
+ <circle fill="limegreen" cx="5" cy="5" r="5" />
+ </pattern>
+ </defs>
+
+ <circle color="blue" stroke="black" fill="url(#MyPattern)" cx="50" cy="50" r="40" />
+</svg>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/svg/painting/currentColor-override-pserver-fill.svg
@@ -0,0 +1,17 @@
+<svg xmlns="http://www.w3.org/2000/svg">
+ <metadata>
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="author" title="Dan Glastonbury" href="mailto:dglastonbury@mozilla.com"/>
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://www.w3.org/TR/SVG2/pservers.html"/>
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="match" href="currentColor-override-pserver-fill-ref.svg"/>
+ <meta xmlns="http://www.w3.org/1999/xhtml" name="assert" content="pattern inherits fill color via currentcolor."/>
+ </metadata>
+
+ <defs>
+ <pattern id="MyPattern" patternUnits="userSpaceOnUse"
+ x="5" y ="5" width="10" height="10" color="red" fill="currentcolor">
+ <circle color="limegreen" fill="inherit" cx="5" cy="5" r="5" />
+ </pattern>
+ </defs>
+
+ <circle stroke="black" fill="url(#MyPattern)" cx="50" cy="50" r="40" />
+</svg>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/svg/painting/currentColor-override-pserver-stroke-ref.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg">
+ <!-- pattern inherits fill color via currentcolor -->
+ <defs>
+ <pattern id="MyPattern" patternUnits="userSpaceOnUse"
+ x="5" y ="5" width="10" height="10">
+ <circle stroke="limegreen" stroke-width="5%" cx="5" cy="5" r="5" />
+ </pattern>
+ </defs>
+
+ <circle stroke="black" fill="url(#MyPattern)" cx="50" cy="50" r="40" />
+</svg>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/svg/painting/currentColor-override-pserver-stroke.svg
@@ -0,0 +1,17 @@
+<svg xmlns="http://www.w3.org/2000/svg">
+ <metadata>
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="author" title="Dan Glastonbury" href="mailto:dglastonbury@mozilla.com"/>
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://www.w3.org/TR/SVG2/pservers.html"/>
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="match" href="currentColor-override-pserver-stroke-ref.svg"/>
+ <meta xmlns="http://www.w3.org/1999/xhtml" name="assert" content="pattern inherits stroke color via currentcolor."/>
+ </metadata>
+
+ <defs>
+ <pattern id="MyPattern" patternUnits="userSpaceOnUse"
+ x="5" y ="5" width="10" height="10" color="red" stroke="currentcolor">
+ <circle color="limegreen" stroke="inherit" stroke-width="5%" cx="5" cy="5" r="5" />
+ </pattern>
+ </defs>
+
+ <circle stroke="black" fill="url(#MyPattern)" cx="50" cy="50" r="40" />
+</svg>