Bug 652991 - Part 4. Reftest for SVG marker.
MozReview-Commit-ID: Icvh7oVv8Mm
--- a/layout/reftests/svg/reftest.list
+++ b/layout/reftests/svg/reftest.list
@@ -428,8 +428,12 @@ skip-if(Android) pref(layout.css.mix-ble
#skip-if(B2G||Mulet||Android) pref(layout.css.mix-blend-mode.enabled,true) == blend-multiply-alpha.svg blend-multiply-alpha-ref.svg # Initial mulet triage: parity with B2G/B2G Desktop
skip-if(Android) pref(layout.css.mix-blend-mode.enabled,true) == blend-multiply.svg blend-multiply-ref.svg
pref(layout.css.mix-blend-mode.enabled,true) == blend-normal.svg blend-normal-ref.svg
#skip-if(Android) pref(layout.css.mix-blend-mode.enabled,true) == blend-overlay.svg blend-overlay-ref.svg
#skip-if(Android) pref(layout.css.mix-blend-mode.enabled,true) == blend-saturation.svg blend-saturation-ref.svg
#skip-if(Android) pref(layout.css.mix-blend-mode.enabled,true) == blend-screen.svg blend-screen-ref.svg
#skip-if(Android) pref(layout.css.mix-blend-mode.enabled,true) == blend-soft-light.svg blend-soft-light-ref.svg
skip-if(Android) pref(layout.css.mix-blend-mode.enabled,true) == blend-difference-stacking.html blend-difference-stacking-ref.html
+
+# test case for Fragment URLs
+# https://drafts.csswg.org/css-values/#local-urls
+== use-localRef-marker-01.svg use-localRef-marker-01-ref.svg
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/use-localRef-marker-01-ref.svg
@@ -0,0 +1,29 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <title>Reference for marker linked to local-ref URL</title>
+ <defs>
+ <marker id="limeCircle" markerWidth="8" markerHeight="8" refX="5" refY="5">
+ <circle cx="5" cy="5" r="2" style="stroke: none; fill:lime;"/>
+ </marker>
+ <marker id="blueCircle" markerWidth="8" markerHeight="8" refX="5" refY="5">
+ <circle cx="5" cy="5" r="2" style="stroke: none; fill:blue;"/>
+ </marker>
+ <marker id="purpleCircle" markerWidth="8" markerHeight="8" refX="5" refY="5">
+ <circle cx="5" cy="5" r="2" style="stroke: none; fill:purple;"/>
+ </marker>
+ </defs>
+ <style>
+ path {
+ stroke: blue;
+ stroke-width: 2px;
+ }
+ </style>
+ <path d="M20,20 L70,20 L120,20" style="marker-start: url(#limeCircle);"/>
+ <path d="M20,40 L70,40 L120,40" style="marker-start: url(#blueCircle);"/>
+ <path d="M20,60 L70,60 L120,60" style="marker-start: url(#blueCircle);"/>
+ <path d="M20,80 L70,80 L120,80" style="marker-mid: url(#limeCircle);"/>
+ <path d="M20,100 L70,100 L120,100" style="marker-mid: url(#blueCircle);"/>
+ <path d="M20,120 L70,120 L120,120" style="marker-mid: url(#blueCircle);"/>
+ <path d="M20,140 L70,140 L120,140" style="marker-end: url(#limeCircle);"/>
+ <path d="M20,160 L70,160 L120,160" style="marker-end: url(#blueCircle);"/>
+ <path d="M20,180 L70,180 L120,180" style="marker-end: url(#blueCircle);"/>
+</svg>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/use-localRef-marker-01.svg
@@ -0,0 +1,30 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <title>Testcase for marker linked to local-ref URL</title>
+ <defs>
+ <marker id="circleMarker" markerWidth="8" markerHeight="8" refX="5" refY="5">
+ <circle cx="5" cy="5" r="2" style="stroke: none; fill:blue;"/>
+ </marker>
+ </defs>
+ <style>
+ #markerA3 {
+ marker-start: url(#circleMarker);
+ }
+ #markerB3 {
+ marker-mid: url(#circleMarker);
+ }
+ #markerC3 {
+ marker-end: url(#circleMarker);
+ }
+ </style>
+ <use xlink:href="use-localRef-marker-resource.svg#markerA1"/>
+ <use xlink:href="use-localRef-marker-resource.svg#markerA2" style="marker-start: url(#circleMarker);"/>
+ <use xlink:href="use-localRef-marker-resource.svg#markerA3"/>
+
+ <use xlink:href="use-localRef-marker-resource.svg#markerB1"/>
+ <use xlink:href="use-localRef-marker-resource.svg#markerB2" style="marker-mid: url(#circleMarker);"/>
+ <use xlink:href="use-localRef-marker-resource.svg#markerB3"/>
+
+ <use xlink:href="use-localRef-marker-resource.svg#markerC1"/>
+ <use xlink:href="use-localRef-marker-resource.svg#markerC2" style="marker-end: url(#circleMarker);"/>
+ <use xlink:href="use-localRef-marker-resource.svg#markerC3"/>
+</svg>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/use-localRef-marker-resource.svg
@@ -0,0 +1,18 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <marker id="circleMarker" markerWidth="8" markerHeight="8" refX="5" refY="5">
+ <circle cx="5" cy="5" r="2" style="stroke: none; fill:lime;"/>
+ </marker>
+ </defs>
+ <path id="markerA1" d="M20,20 L70,20 L120,20" style="stroke: blue; stroke-width: 2px; marker-start: url(#circleMarker);"/>
+ <path id="markerA2" d="M20,40 L70,40 L120,40" style="stroke: blue; stroke-width: 2px;"/>
+ <path id="markerA3" d="M20,60 L70,60 L120,60" style="stroke: blue; stroke-width: 2px;"/>
+
+ <path id="markerB1" d="M20,80 L70,80 L120,80" style="stroke: blue; stroke-width: 2px; marker-mid: url(#circleMarker);"/>
+ <path id="markerB2" d="M20,100 L70,100 L120,100" style="stroke: blue; stroke-width: 2px;"/>
+ <path id="markerB3" d="M20,120 L70,120 L120,120" style="stroke: blue; stroke-width: 2px;"/>
+
+ <path id="markerC1" d="M20,140 L70,140 L120,140" style="stroke: blue; stroke-width: 2px; marker-end: url(#circleMarker);"/>
+ <path id="markerC2" d="M20,160 L70,160 L120,160" style="stroke: blue; stroke-width: 2px;"/>
+ <path id="markerC3" d="M20,180 L70,180 L120,180" style="stroke: blue; stroke-width: 2px;;"/>
+</svg>
\ No newline at end of file