mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
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:
parent
251c8100b8
commit
5eba8c43b5
11
dom/html/reftests/bug1106522-1.html
Normal file
11
dom/html/reftests/bug1106522-1.html
Normal 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>
|
11
dom/html/reftests/bug1106522-2.html
Normal file
11
dom/html/reftests/bug1106522-2.html
Normal 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>
|
8
dom/html/reftests/bug1106522-ref.html
Normal file
8
dom/html/reftests/bug1106522-ref.html
Normal 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>
|
4
dom/html/reftests/lime100x100.svg
Normal file
4
dom/html/reftests/lime100x100.svg
Normal 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
BIN
dom/html/reftests/red.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 82 B |
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user