Regression reftests for bug 822014 to let us know if the behavior of clip-path on outer-<svg> with a border changes.
authorJonathan Watt <jwatt@jwatt.org>
Sat, 22 Dec 2012 16:43:20 +0000
changeset 125999 1911ef1478a37f9078a37376594e7402969f86a1
parent 125998 b9807d681190145ce7a0ee12439d9d909596f31a
child 126000 38fbb50e6038cd990c72650ab5ad8c1adbb6c9eb
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs822014
milestone20.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
Regression reftests for bug 822014 to let us know if the behavior of clip-path on outer-<svg> with a border changes.
layout/reftests/svg/svg-integration/clipPath-html-07-ref.svg
layout/reftests/svg/svg-integration/clipPath-html-07.xhtml
layout/reftests/svg/svg-integration/clipPath-html-08.xhtml
layout/reftests/svg/svg-integration/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/svg-integration/clipPath-html-07-ref.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg">
+  <rect x="100" y="100" width="100" height="100" fill="black"/>
+  <rect x="150" y="150" width="50" height="50" fill="yellow"/>
+</svg>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/svg-integration/clipPath-html-07.xhtml
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<!--
+     Any copyright is dedicated to the Public Domain.
+     http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=822014 -->
+  <head>
+    <title>Test clip-path on outer-&lt;svg&gt; with border</title>
+    <style>
+
+html, body {
+  border: 0; margin: 0;
+}
+
+    </style>
+  </head>
+  <body>
+    <svg xmlns="http://www.w3.org/2000/svg"
+         width="200" height="200" clip-path="url(#cp)"
+         style="border: solid 100px black; margin: 50px;">
+
+      <clipPath id="cp">
+        <path d="M50,50 150,50 150,150 50,150 z"/>
+      </clipPath>
+
+      <rect width="100%" height="100%" fill="yellow"/>
+
+    </svg>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/svg-integration/clipPath-html-08.xhtml
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<!--
+     Any copyright is dedicated to the Public Domain.
+     http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=822014 -->
+  <head>
+    <title>Test clip-path on &lt;div&gt; with border</title>
+    <style>
+
+html, body {
+  border: 0; margin: 0;
+}
+
+    </style>
+  </head>
+  <body>
+    <div style="clip-path: url(#cp); width: 200px; height: 200px; background: yellow; border: solid 100px black; margin: 50px;"></div>
+    <svg xmlns="http://www.w3.org/2000/svg" height="0">
+      <clipPath id="cp">
+        <path d="M50,50 150,50 150,150 50,150 z"/>
+      </clipPath>
+    </svg>
+  </body>
+</html>
--- a/layout/reftests/svg/svg-integration/reftest.list
+++ b/layout/reftests/svg/svg-integration/reftest.list
@@ -5,16 +5,18 @@
 == clipPath-html-03.xhtml clipPath-html-03-ref.svg
 == clipPath-html-03-extref.xhtml clipPath-html-03-ref.svg
 == clipPath-html-04.xhtml clipPath-html-04-ref.xhtml
 == clipPath-html-04-extref.xhtml clipPath-html-04-ref.xhtml
 fuzzy-if(true,140,70) == clipPath-html-05.xhtml clipPath-html-05-ref.xhtml # Bug 776089
 fuzzy-if(true,140,70) == clipPath-html-05-extref.xhtml clipPath-html-05-ref.xhtml # Bug 776089
 == clipPath-html-06.xhtml clipPath-html-06-ref.xhtml
 == clipPath-html-06-extref.xhtml clipPath-html-06-ref.xhtml
+== clipPath-html-07.xhtml clipPath-html-07-ref.svg
+== clipPath-html-08.xhtml clipPath-html-07-ref.svg # reuse 07-ref.svg
 == clipPath-html-zoomed-01.xhtml clipPath-html-01-ref.svg
 == clipPath-transformed-html-01.xhtml ../pass.svg
 == clipPath-transformed-html-02.xhtml ../pass.svg
 == conditions-outer-svg-01.xhtml ../pass.svg
 == conditions-outer-svg-02.xhtml ../pass.svg
 == dynamic-conditions-outer-svg-01.xhtml ../pass.svg
 == dynamic-conditions-outer-svg-02.xhtml ../pass.svg
 == dynamic-conditions-outer-svg-03.xhtml ../pass.svg