-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1513326 [wpt PR 14466] - Fix SVG-As-Background sizing, a=testonly
Automatic update from web-platform-tests Fix SVG-As-Background sizing Addresses a TODO where we were snapping the intrinsic size of an SVG image, even when that is no longer useful. This was posing issues with operations using aspect ratio, because the computed aspect ratio on the snapped value was wrong when then used on un-snapped values. R=fsopera.com BUG=855882 Change-Id: I0c14c0109da4c5ca5e52aebf408e9b702eda799c Reviewed-on: https://chromium-review.googlesource.com/c/1370486 Commit-Queue: Stephen Chenney <schenneychromium.org> Reviewed-by: Fredrik Söderquist <fsopera.com> Cr-Commit-Position: refs/heads/master{#615798} -- wpt-commits: 39f6169dae5bafb2f5d5d5b4a6595e20d63337b7 wpt-pr: 14466 UltraBlame original commit: d18edb629f8f945eed546b1aec47656aab0d11ae
- Loading branch information
Showing
3 changed files
with
373 additions
and
0 deletions.
There are no files selected for viewing
194 changes: 194 additions & 0 deletions
194
...ing/web-platform/tests/css/css-backgrounds/background-size/background-size-cover-svg.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
< | ||
! | ||
DOCTYPE | ||
html | ||
> | ||
< | ||
html | ||
> | ||
< | ||
head | ||
> | ||
< | ||
title | ||
> | ||
CSS | ||
Background | ||
Test | ||
: | ||
A | ||
SVG | ||
background | ||
should | ||
fully | ||
cover | ||
the | ||
positioning | ||
area | ||
< | ||
/ | ||
title | ||
> | ||
< | ||
link | ||
rel | ||
= | ||
" | ||
author | ||
" | ||
title | ||
= | ||
" | ||
schenney | ||
" | ||
href | ||
= | ||
" | ||
mailto | ||
: | ||
schenney | ||
chromium | ||
. | ||
org | ||
" | ||
> | ||
< | ||
link | ||
rel | ||
= | ||
" | ||
help | ||
" | ||
href | ||
= | ||
" | ||
http | ||
: | ||
/ | ||
/ | ||
www | ||
. | ||
w3 | ||
. | ||
org | ||
/ | ||
TR | ||
/ | ||
css3 | ||
- | ||
background | ||
" | ||
> | ||
< | ||
link | ||
rel | ||
= | ||
" | ||
match | ||
" | ||
href | ||
= | ||
" | ||
reference | ||
/ | ||
background | ||
- | ||
size | ||
- | ||
cover | ||
- | ||
svg | ||
- | ||
ref | ||
. | ||
html | ||
" | ||
> | ||
< | ||
style | ||
> | ||
div | ||
{ | ||
height | ||
: | ||
400px | ||
; | ||
width | ||
: | ||
600px | ||
; | ||
position | ||
: | ||
relative | ||
; | ||
background | ||
- | ||
color | ||
: | ||
red | ||
; | ||
background | ||
- | ||
size | ||
: | ||
cover | ||
; | ||
background | ||
- | ||
repeat | ||
: | ||
no | ||
- | ||
repeat | ||
; | ||
background | ||
- | ||
position | ||
: | ||
bottom | ||
center | ||
; | ||
background | ||
- | ||
image | ||
: | ||
url | ||
( | ||
" | ||
support | ||
/ | ||
rectangle | ||
- | ||
2560x208 | ||
. | ||
svg | ||
" | ||
) | ||
; | ||
} | ||
< | ||
/ | ||
style | ||
> | ||
< | ||
/ | ||
head | ||
> | ||
< | ||
body | ||
> | ||
< | ||
div | ||
> | ||
< | ||
/ | ||
div | ||
> | ||
< | ||
/ | ||
body | ||
> | ||
< | ||
/ | ||
html | ||
> |
128 changes: 128 additions & 0 deletions
128
...rm/tests/css/css-backgrounds/background-size/reference/background-size-cover-svg-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
< | ||
! | ||
DOCTYPE | ||
html | ||
> | ||
< | ||
html | ||
> | ||
< | ||
head | ||
> | ||
< | ||
title | ||
> | ||
CSS | ||
Background | ||
Test | ||
Reference | ||
< | ||
/ | ||
title | ||
> | ||
< | ||
link | ||
rel | ||
= | ||
" | ||
author | ||
" | ||
title | ||
= | ||
" | ||
schenney | ||
" | ||
href | ||
= | ||
" | ||
mailto | ||
: | ||
schenney | ||
chromium | ||
. | ||
org | ||
" | ||
> | ||
< | ||
style | ||
> | ||
div | ||
{ | ||
height | ||
: | ||
400px | ||
; | ||
width | ||
: | ||
600px | ||
; | ||
position | ||
: | ||
relative | ||
; | ||
background | ||
- | ||
color | ||
: | ||
red | ||
; | ||
background | ||
- | ||
repeat | ||
: | ||
repeat | ||
; | ||
background | ||
- | ||
position | ||
: | ||
bottom | ||
center | ||
; | ||
background | ||
- | ||
image | ||
: | ||
url | ||
( | ||
" | ||
. | ||
. | ||
/ | ||
support | ||
/ | ||
50x50 | ||
- | ||
green | ||
. | ||
png | ||
" | ||
) | ||
; | ||
} | ||
< | ||
/ | ||
style | ||
> | ||
< | ||
/ | ||
head | ||
> | ||
< | ||
body | ||
> | ||
< | ||
div | ||
> | ||
< | ||
/ | ||
div | ||
> | ||
< | ||
/ | ||
body | ||
> | ||
< | ||
/ | ||
html | ||
> |
51 changes: 51 additions & 0 deletions
51
...atform/tests/css/css-backgrounds/background-size/support/rectangle-2560x208.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.