Bug 652991 - Part 3. Reftests;
MozReview-Commit-ID: CFjbHuIVCl4
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/652991-1-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html class>
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="200" height="200">
+ <defs>
+ <pattern id="pattern-id" x="0" y="0" patternUnits="userSpaceOnUse" height="200" width="200">
+ <rect width="200" height="200" style="fill:rgb(0,0,255)" />
+ </pattern>
+ </defs>
+ <circle id="circle" cx="101" cy="101" r="50" fill="url(#pattern-id)" stroke="#000">
+ </circle>
+</svg>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/652991-1a.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="200" height="200">
+ <defs>
+ <pattern id="pattern-id" x="0" y="0" patternUnits="userSpaceOnUse" height="200" width="200">
+ <rect width="200" height="200" style="fill:rgb(0,0,255)" />
+ </pattern>
+ </defs>
+ <circle id="drawPath" cx="101" cy="101" r="50" fill="url(#pattern-id)" stroke="#000">
+ </circle>
+</svg>
+<script>
+function doTest() {
+ window.history.pushState(null, "", "new-page");
+
+ drawPath.style.display = "none";
+ window.setTimeout(() => {
+ drawPath.style.display = "inline";
+ document.documentElement.removeAttribute('class');
+ }, 0);
+}
+
+drawPath = document.getElementById("drawPath");
+window.addEventListener("MozReftestInvalidate", doTest);
+</script>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/652991-1b.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="200" height="200">
+ <defs>
+ <pattern id="pattern-id" x="0" y="0" patternUnits="userSpaceOnUse" height="200" width="200">
+ <rect width="200" height="200" style="fill:rgb(0,0,255)" />
+ </pattern>
+ </defs>
+ <circle id="drawPath" cx="101" cy="101" r="50" style="fill: url("#pattern-id");" stroke="#000">
+ </circle>
+</svg>
+<script>
+function doTest() {
+ window.history.pushState(null, "", "new-page");
+
+ drawPath.style.display = "none";
+ window.setTimeout(() => {
+ drawPath.style.display = "inline";
+ document.documentElement.removeAttribute('class');
+ }, 0);
+}
+
+drawPath = document.getElementById("drawPath");
+window.addEventListener("MozReftestInvalidate", doTest);
+</script>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/652991-2-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html class>
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="200" height="200">
+ <defs>
+ <clipPath id="myClip">
+ <circle cx="30" cy="30" r="20"/>
+ <circle cx="70" cy="70" r="20"/>
+ </clipPath>
+ </defs>
+ <rect x="10" y="10" width="100" height="100" clip-path="url(#myClip)"/>
+</svg>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/652991-2.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html class>
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="200" height="200">
+ <defs>
+ <clipPath id="myClip">
+ <circle cx="30" cy="30" r="20"/>
+ <circle cx="70" cy="70" r="20"/>
+ </clipPath>
+ </defs>
+ <rect id="drawPath" x="10" y="10" width="100" height="100" clip-path="url(#myClip)"/>
+</svg>
+<script>
+function doTest() {
+ window.history.pushState(null, "", "new-page");
+
+ drawPath.style.display = "none";
+ window.setTimeout(() => {
+ drawPath.style.display = "inline";
+ document.documentElement.removeAttribute('class');
+ }, 0);
+}
+
+drawPath = document.getElementById("drawPath");
+window.addEventListener("MozReftestInvalidate", doTest);
+</script>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/652991-3-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html class>
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="200" height="200">
+<defs>
+ <marker id="markerCircle" markerWidth="8" markerHeight="8" refX="5" refY="5">
+ <circle cx="5" cy="5" r="2" style="stroke: none; fill:#000000;"/>
+ </marker>
+</defs>
+<path id="drawPath" d="M10,10 L60,10 L110,10"
+ style="stroke: #6666ff; stroke-width: 1px; fill: none; marker-start: url(#markerCircle); marker-mid: url(#markerCircle);; marker-end: url(#markerCircle);"/>
+</svg>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/652991-3.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="200" height="200">
+<defs>
+ <marker id="markerCircle" markerWidth="8" markerHeight="8" refX="5" refY="5">
+ <circle cx="5" cy="5" r="2" style="stroke: none; fill:#000000;"/>
+ </marker>
+</defs>
+<path id="drawPath" d="M10,10 L60,10 L110,10"
+ style="stroke: #6666ff; stroke-width: 1px; fill: none; marker-start: url(#markerCircle); marker-mid: url(#markerCircle);; marker-end: url(#markerCircle);"/>
+</svg>
+<script>
+function doTest() {
+ window.history.pushState(null, "", "new-page");
+
+ drawPath.style.display = "none";
+ window.setTimeout(() => {
+ drawPath.style.display = "inline";
+ document.documentElement.removeAttribute('class');
+ }, 0);
+}
+
+drawPath = document.getElementById("drawPath");
+window.addEventListener("MozReftestInvalidate", doTest);
+</script>
\ No newline at end of file
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1946,8 +1946,12 @@ pref(layout.css.overflow-clip-box.enable
== 1230466.html about:blank
random-if(gtkWidget) != 1238243-1.html 1238243-1-notref.html # may fail on Linux, depending on Korean fonts available
random-if(OSX==1006) == 1238243-2.html 1238243-2-ref.html # fails on 10.6 with default fonts because filler has a visible glyph
fuzzy(100,2000) == 1239564.html 1239564-ref.html
== 1242172-1.html 1242172-1-ref.html
== 1242172-2.html 1242172-2-ref.html
== 1263845.html 1263845-ref.html
== 1260543-1.html 1260543-1-ref.html
+HTTP == 652991-1a.html 652991-1-ref.html
+HTTP == 652991-1b.html 652991-1-ref.html
+HTTP == 652991-2.html 652991-2-ref.html
+HTTP == 652991-3.html 652991-3-ref.html