Bug 1357432 - Part 4. Reftest for using local-ref as xlink:href value. draft
authorcku <cku@mozilla.com>
Tue, 18 Apr 2017 23:58:43 +0800
changeset 565685 c7fb52081c4f8217f5f631e2d5f2039e25c20a5c
parent 565684 b9c52e209b62ad5331c9f8f858f7f865bec88f4e
child 625073 ce04930d8583932ba3908552364c12f6169df6d7
push id54957
push userbmo:cku@mozilla.com
push dateThu, 20 Apr 2017 07:59:21 +0000
bugs1357432
milestone55.0a1
Bug 1357432 - Part 4. Reftest for using local-ref as xlink:href value. MozReview-Commit-ID: HoKf7vNSneE
layout/reftests/svg/reftest.list
layout/reftests/svg/use-localRef-link.html
--- a/layout/reftests/svg/reftest.list
+++ b/layout/reftests/svg/reftest.list
@@ -507,16 +507,17 @@ fuzzy-if(skiaContent,1,100) == tspan-xy-
 == use-children.svg pass.svg
 
 # test case for Fragment URLs
 # https://drafts.csswg.org/css-values/#local-urls
 == use-localRef-marker-01.svg use-localRef-marker-01-ref.svg
 == use-localRef-clipPath-01.svg use-localRef-clipPath-01-ref.svg
 == use-localRef-filter-01.svg use-localRef-filter-01-ref.svg
 == use-localRef-fill-01.svg use-localRef-fill-01-ref.svg
+== use-localRef-link.html pass.svg
 == use-localRef-stroke-01.svg use-localRef-stroke-01-ref.svg
 == use-localRef-mask-01.svg use-localRef-mask-01-ref.svg
 
 == userSpaceOnUse-and-pattern-01.svg userSpaceOnUse-and-pattern-01-ref.svg
 
 == viewBox-and-pattern-01.svg pass.svg
 == viewBox-and-pattern-02.svg pass.svg
 == viewBox-and-pattern-03.svg pass.svg
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/use-localRef-link.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<head>
+<base href="/test">
+</head>
+<body style="background-color: lime;">
+  <svg width="100" height="100">
+    <defs>
+      <rect id="a" x="0" y="0" width="50" height="50" fill="lime"/>
+    </defs>
+    <rect x="0" y="0" width="50" height="50" fill="red"/>
+    <use xlink:href="#a"/>
+  </svg>
+</body>
+</html>
+