Bug 1358794, part 2 - Reftests to check SVG embedded by SVG <image> gets a synthetic viewBox if necessary. r=longsonr

MozReview-Commit-ID: FWCXcU0TUEz
This commit is contained in:
Jonathan Watt 2017-03-25 17:05:37 +00:00
parent 80319e98e0
commit 74755b0df4
5 changed files with 19 additions and 0 deletions

View File

@ -180,6 +180,9 @@ HTTP == svg-stylesheet-external-1.html blue100x100.svg
!= svg-image-visited-2-helper.svg about:blank
== svg-image-visited-2.html lime100x100.svg
# tests for SVG <image> that should have a synthetic viewBox
== svg-image-synthetic-viewBox-01.svg svg-image-synthetic-viewBox-01-ref.svg
# Test for painting problems with SVGs used in border images.
# XXXseth: The underlying problems also apply to media fragments,
# but the test case would be much simpler. This should be switched

View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
<circle cx="100" cy="100" r="100" fill="blue"/>
</svg>

After

Width:  |  Height:  |  Size: 124 B

View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
<circle cx="50" cy="50" r="50" fill="blue"/>
</svg>

After

Width:  |  Height:  |  Size: 121 B

View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg">
<image width="100" height="100" href="svg-image-synthetic-viewBox-01-helper-2.svg"/>
</svg>

After

Width:  |  Height:  |  Size: 136 B

View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg">
<image width="100" height="100" href="svg-image-synthetic-viewBox-01-helper-1.svg"/>
</svg>

After

Width:  |  Height:  |  Size: 136 B