Bug 1251431, part 3 - Reftest for mask and clipPath applied to the same element. r=Bas
☠☠ backed out by 5b08ae92f655 ☠ ☠
authorJonathan Watt <jwatt@jwatt.org>
Mon, 18 Jul 2016 13:02:16 +0100
changeset 347526 b46b071d48cf7d26edcd077970e1c3445248a171
parent 347525 a9eeb3adc7ddb5006c088e9eda61791c777cbf7c
child 347527 d7cca89ce49723337bd50dd04fec86f43096560a
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.html
layout/reftests/svg/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/mask-and-clipPath-2.html
@@ -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.html 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