Bug 1356179 - Part 2. Reftest for applying clip-path onto thin objects. draft
authorcku <cku@mozilla.com>
Wed, 10 May 2017 15:44:52 +0800
changeset 576053 0957b2cf3fdee7ffc3771ed91d633a422de7eb3d
parent 576025 041b21c8d3265b97ff28b63114650abba76c6e15
child 628100 67838b0ff8e558f6d2edd3a6405d9785933deac4
push id58254
push userbmo:cku@mozilla.com
push dateThu, 11 May 2017 09:01:18 +0000
bugs1356179
milestone55.0a1
Bug 1356179 - Part 2. Reftest for applying clip-path onto thin objects. MozReview-Commit-ID: 7CDyDYtLWsN
layout/reftests/svg/clipPath-on-thin-object.svg
layout/reftests/svg/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/clipPath-on-thin-object.svg
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500">
+  <defs>
+    <clipPath clipPathUnits="objectBoundingBox" id="myPath">
+      <rect x="0" y="0" height="1" width="1"/>
+    </clipPath>
+  </defs>
+
+  <!-- You should see a thin horizontal light lime line. -->
+  <path d="M0 99.6 L500 99.6 L500 100.3 L0 100.3 Z" fill="lime" clip-path="url(#myPath)"/>
+  <!-- You should see a vertical light lime line. -->
+  <path d="M199.9 0 L199.9 500 L200.4 500 L200.4 0 Z" fill="lime" clip-path="url(#myPath)"/>
+</svg>
--- a/layout/reftests/svg/reftest.list
+++ b/layout/reftests/svg/reftest.list
@@ -76,16 +76,17 @@ fuzzy-if(/^Windows\x20NT\x2010\.0/.test(
 == clipPath-basic-06.svg pass.svg
 == clipPath-basic-07.svg pass.svg
 == clipPath-on-outflowElement-01a.html clipPath-on-outflowElement-01-ref.html
 == clipPath-on-outflowElement-01b.html clipPath-on-outflowElement-01-ref.html
 default-preferences pref(layout.css.clip-path-shapes.enabled,true)
 fuzzy(1,32400) == clipPath-on-outflowElement-02a.html clipPath-on-outflowElement-02-ref.html
 fuzzy(1,32400) == clipPath-on-outflowElement-02b.html clipPath-on-outflowElement-02-ref.html
 default-preferences
+!= clipPath-on-thin-object.svg about:blank
 == clipPath-winding-01.svg pass.svg
 
 == comments-in-pres-attrs.svg pass.svg
 
 == conditions-01.svg pass.svg
 == conditions-02.svg pass.svg
 == conditions-03.svg pass.svg
 == conditions-04.svg pass.svg
@@ -271,17 +272,17 @@ fuzzy-if(skiaContent,1,10000) == mask-ba
 == mask-basic-03.svg pass.svg
 == mask-basic-04.svg pass.svg
 == mask-basic-05.svg pass.svg
 == mask-containing-masked-content-01.svg pass.svg
 == mask-contains-inner-svg-01.svg pass.svg
 == mask-contains-inner-svg-02.svg pass.svg
 == mask-empty-size.svg about:blank
 == mask-extref-dataURI-01.svg pass.svg
-== mask-img.html mask-img-ref.html
+fuzzy(128,141) == mask-img.html mask-img-ref.html
 == mask-on-outflowElement-01a.html clipPath-on-outflowElement-01-ref.html
 == mask-on-outflowElement-01b.html clipPath-on-outflowElement-01-ref.html
 fuzzy(1,5000) == mask-opacity-01.svg mask-opacity-01-ref.svg
 != mask-root-svg.svg about:blank
 == mask-transformed-01.svg mask-transformed-01-ref.svg
 == mask-transformed-02.svg pass.svg
 == mask-transformed-child-01.svg mask-transformed-child-01-ref.svg
 # fuzzy because of the differences between clipPath and mask clipping