Bug 1350835 - Part 2. Reftest for loading a big image inside foreignObject. draft
authorcku <cku@mozilla.com>
Mon, 27 Mar 2017 16:55:06 +0800
changeset 552199 4a532da38d5376f4f71df92b3542bcd6b2746da0
parent 552198 e5fa62807df912177d79af767bf033134f06e839
child 621750 16a34b13e8279c8c21b7d8886f163773c38b40c9
push id51282
push userbmo:cku@mozilla.com
push dateTue, 28 Mar 2017 05:04:54 +0000
bugs1350835
milestone55.0a1
Bug 1350835 - Part 2. Reftest for loading a big image inside foreignObject. MozReview-Commit-ID: 2dBmewsQsqf
layout/reftests/svg/foreignObject-big-image.svg
layout/reftests/svg/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/foreignObject-big-image.svg
@@ -0,0 +1,10 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:html="http://www.w3.org/1999/xhtml" width="40" height="40">
+
+<foreignObject x="0" y="0" width="100%" height="100%">
+  <body xmlns="http://www.w3.org/1999/xhtml" style="margin:0px">
+    <img src="big-image.jpeg" width="10" height="10"/>
+  </body>
+</foreignObject>
+
+</svg>
\ No newline at end of file
--- a/layout/reftests/svg/reftest.list
+++ b/layout/reftests/svg/reftest.list
@@ -207,16 +207,17 @@ fuzzy(71,817) == filter-on-continuation-
 fuzzy-if(skiaContent,1,500) == filter-scaled-02.html filter-scaled-02-ref.html
 == filter-translated-01.svg filter-translated-01-ref.svg
 == filter-use-element-01.svg pass.svg
 fuzzy-if(skiaContent,1,800000) == filters-and-group-opacity-01.svg filters-and-group-opacity-01-ref.svg
 
 == foreignObject-01.svg pass.svg
 == foreignObject-02.svg foreignObject-02-ref.svg
 == foreignObject-ancestor-style-change-01.svg foreignObject-ancestor-style-change-01-ref.svg
+!= foreignObject-big-image.svg about:blank
 == foreignObject-change-transform-01.svg pass.svg
 == foreignObject-display-01.svg pass.svg
 pref(layout.css.moz-appearance.enabled,true) == foreignObject-form-theme.svg foreignObject-form-theme-ref.html
 == foreignObject-img-form-theme.html foreignObject-img-form-theme-ref.html
 == foreignObject-move-repaint-01.svg pass.svg
 == foreignObject-overflow-01.svg pass.svg
 == foreignObject-start-hidden-01.svg pass.svg # followup from Bug 596765
 == foreignObject-start-hidden-02.svg pass.svg