Bug 1251431, part 3 - Reftest for mask and clipPath applied to the same element. r=Bas
authorJonathan Watt <jwatt@jwatt.org>
Mon, 18 Jul 2016 13:02:16 +0100
changeset 347532 34f662c8a932551e07a6c66853b9f696b5906f42
parent 347531 b6bc93be1406a0bf83f5f6c49df44214a42817e5
child 347533 4a18b5cacb1b21a3e8b4b1dada6b2dd3dba51cb1
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBas
bugs1251431
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1251431, part 3 - Reftest for mask and clipPath applied to the same element. r=Bas
layout/reftests/svg/mask-and-clipPath-2.svg
layout/reftests/svg/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/mask-and-clipPath-2.svg
@@ -0,0 +1,21 @@
+<!--
+     Any copyright is dedicated to the Public Domain.
+     http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+    <polygon id="p" points="0.25,0 0.75,0 0.75,1 0.25,1"/>
+    <clipPath id="cp" clipPathUnits="objectBoundingBox">
+      <use xlink:href="#p"/>
+    </clipPath>
+    <mask id="m" maskContentUnits="objectBoundingBox">
+      <rect x="0" y="0.25" width="1" height="0.5" fill="white"/>
+    </mask>
+  </defs>
+  <rect width="100%" height="100%" fill="lime"/>
+  <rect x="101" y="101" width="198" height="198" fill="red"/>
+  <rect width="400" height="400" fill="lime" mask="url(#m)" clip-path="url(#cp)"
+        x="-400" y="-400" transform="translate(400,400)"/>
+</svg>
+
--- a/layout/reftests/svg/reftest.list
+++ b/layout/reftests/svg/reftest.list
@@ -215,16 +215,17 @@ fuzzy-if(skiaContent,1,5) pref(svg.marke
 == mask-basic-04.svg pass.svg
 == mask-extref-dataURI-01.svg pass.svg
 == mask-containing-masked-content-01.svg pass.svg
 == 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
 fuzzy(27,28) == mask-and-clipPath.html mask-and-clipPath-ref.html
+== mask-and-clipPath-2.svg pass.svg
 pref(layout.css.masking.enabled,true) fuzzy-if(d2d||skiaContent,1,6400) == mask-type-01.svg mask-type-01-ref.svg
 pref(layout.css.masking.enabled,true) fuzzy-if(d2d||skiaContent,1,6400) == mask-type-02.svg mask-type-01-ref.svg
 pref(layout.css.masking.enabled,true) fuzzy-if(d2d||skiaContent,1,6400) == mask-type-03.svg mask-type-01-ref.svg
 pref(layout.css.masking.enabled,true) fuzzy-if(d2d||skiaContent,1,6400) == mask-type-04.svg mask-type-01-ref.svg
 == nested-viewBox-01.svg pass.svg
 fuzzy-if(skiaContent,3,448000) == nesting-invalid-01.svg nesting-invalid-01-ref.svg
 fuzzy-if(d2d&&/^Windows\x20NT\x20(6\.1|10\.0)/.test(http.oscpu),63,168) fuzzy-if(cocoaWidget,1,122) fuzzy-if(skiaContent,2,1000) == non-scaling-stroke-01.svg non-scaling-stroke-01-ref.svg # bug 1074161 for Win7 and OSX 10.8
 fuzzy-if(gtkWidget,1,99) fuzzy-if(!contentSameGfxBackendAsCanvas,9,99) fuzzy-if(Android||B2G,9,586) == non-scaling-stroke-02.svg non-scaling-stroke-02-ref.svg