Bug 1106522 (Part 2) - Add a test for SVG-as-image in picture elements. r=bz

--HG--
rename : image/test/mochitest/lime100x100.svg => dom/html/reftests/lime100x100.svg
rename : image/test/mochitest/red.png => dom/html/reftests/red.png
This commit is contained in:
Seth Fowler 2014-12-05 11:33:10 -08:00
parent 251c8100b8
commit 5eba8c43b5
6 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html>
<body>
<picture>
<source srcset="lime100x100.svg" type="image/svg+xml">
<img src="red.png" width="100" height="100">
</picture>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html>
<body>
<picture>
<source srcset="lime100x100.svg">
<img src="red.png" width="100" height="100">
</picture>
</body>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html>
<body>
<img src="lime100x100.svg">
</body>
</html>

View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
width="100" height="100">
<rect width="100%" height="100%" fill="lime"/>
</svg>

After

Width:  |  Height:  |  Size: 141 B

BIN
dom/html/reftests/red.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

View File

@ -41,6 +41,10 @@ skip-if(Android||B2G) == 649134-2.html 649134-2-ref.html
fuzzy(1,149) == bug917595-iframe-1.html bug917595-1-ref.html
skip-if(B2G) fuzzy-if(!B2G,3,640) == bug917595-exif-rotated.jpg bug917595-pixel-rotated.jpg # bug 1060869
# Test support for SVG-as-image in <picture> elements.
pref(dom.image.picture.enabled,true) pref(dom.image.srcset.enabled,true) == bug1106522-1.html bug1106522-ref.html
pref(dom.image.picture.enabled,true) pref(dom.image.srcset.enabled,true) == bug1106522-2.html bug1106522-ref.html
== href-attr-change-restyles.html href-attr-change-restyles-ref.html
== figure.html figure-ref.html
== pre-1.html pre-1-ref.html