-
Notifications
You must be signed in to change notification settings - Fork 65
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. [email protected] BUG=855882 Change-Id: I0c14c0109da4c5ca5e52aebf408e9b702eda799c Reviewed-on: https://chromium-review.googlesource.com/c/1370486 Commit-Queue: Stephen Chenney <[email protected]> Reviewed-by: Fredrik Söderquist <[email protected]> Cr-Commit-Position: refs/heads/master@{#615798} -- wpt-commits: 39f6169dae5bafb2f5d5d5b4a6595e20d63337b7 wpt-pr: 14466
- Loading branch information
1 parent
d8520c8
commit da559d6
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...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,25 @@ | ||
<!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:[email protected]"> | ||
<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> |
22 changes: 22 additions & 0 deletions
22
...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,22 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>CSS Background Test Reference</title> | ||
<link rel="author" title="schenney" href="mailto:[email protected]"> | ||
<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> |
3 changes: 3 additions & 0 deletions
3
...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.