Bug 1356179 - Part 2: Reftest for applying clip-path onto thin objects. r=mstange, a=gchang
authorcku <cku@mozilla.com>
Wed, 10 May 2017 15:44:52 +0800
changeset 581822 00ee53863f3c04aab9273bc2758cd30e4bcf2c81
parent 581821 f823cd086b3c189da690291920de387f6290c16e
child 581823 ec617abf72cd336c59540690e99576df8fcbd4a9
push id59898
push userfmarier@mozilla.com
push dateFri, 19 May 2017 23:56:54 +0000
reviewersmstange, gchang
bugs1356179
milestone54.0
Bug 1356179 - Part 2: Reftest for applying clip-path onto thin objects. r=mstange, a=gchang 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
@@ -35,16 +35,17 @@ fuzzy-if(/^Windows\x20NT\x2010\.0/.test(
 == clipPath-and-transform-01.svg pass.svg
 == clipPath-basic-01.svg pass.svg
 == clipPath-basic-02.svg pass.svg
 == clipPath-basic-03.svg pass.svg
 == clipPath-basic-04.svg pass.svg
 == clipPath-basic-05.svg pass.svg
 == clipPath-basic-06.svg pass.svg
 == clipPath-basic-07.svg pass.svg
+!= clipPath-on-thin-object.svg about:blank
 == clipPath-winding-01.svg pass.svg
 == clip-surface-clone-01.svg clip-surface-clone-01-ref.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
 == conditions-05.svg about:blank
@@ -405,17 +406,17 @@ fuzzy-if(skiaContent,1,100) == tspan-xy-
 == viewBox-valid-02.xhtml pass.svg
 == viewport-percent-graphic-user-01.svg pass.svg
 == winding-01.svg pass.svg
 
 == svg-effects-area-unzoomed.xhtml svg-effects-area-unzoomed-ref.xhtml
 == svg-effects-area-zoomed-in.xhtml svg-effects-area-zoomed-in-ref.xhtml
 == svg-effects-area-zoomed-out.xhtml svg-effects-area-zoomed-out-ref.xhtml
 == href-attr-change-restyles.svg href-attr-change-restyles-ref.svg
-== mask-img.html mask-img-ref.html
+fuzzy(128,141) == mask-img.html mask-img-ref.html
 
 skip-if(Android) pref(layout.css.mix-blend-mode.enabled,true) == blend-color-burn.svg blend-color-burn-ref.svg
 skip-if(Android) pref(layout.css.mix-blend-mode.enabled,true) == blend-color-dodge.svg blend-color-dodge-ref.svg
 # pref(layout.css.mix-blend-mode.enabled,true) == blend-color.svg blend-color-ref.svg
 skip-if(Android) pref(layout.css.mix-blend-mode.enabled,true) == blend-darken.svg blend-darken-ref.svg
 skip-if(Android) pref(layout.css.mix-blend-mode.enabled,true) == blend-difference.svg blend-difference-ref.svg
 skip-if(Android) fuzzy-if(skiaContent,1,1600) pref(layout.css.mix-blend-mode.enabled,true) == blend-exclusion.svg blend-exclusion-ref.svg
 # pref(layout.css.mix-blend-mode.enabled,true) == blend-hard-light.svg blend-hard-light-ref.svg