Skip to content

Commit 41f139a

Browse files
committed
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
1 parent 869dd61 commit 41f139a

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>CSS Background Test: A SVG background should fully cover the positioning area</title>
5+
<link rel="author" title="schenney" href="mailto:[email protected]">
6+
<link rel="help" href="http://www.w3.org/TR/css3-background">
7+
<link rel="match" href="reference/background-size-cover-svg-ref.html">
8+
<style>
9+
div {
10+
height: 400px;
11+
width: 600px;
12+
position: relative;
13+
background-color: red;
14+
background-size: cover;
15+
background-repeat: no-repeat;
16+
background-position: bottom center;
17+
background-image: url("support/rectangle-2560x208.svg");
18+
}
19+
</style>
20+
</head>
21+
22+
<body>
23+
<div></div>
24+
</body>
25+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>CSS Background Test Reference</title>
5+
<link rel="author" title="schenney" href="mailto:[email protected]">
6+
<style>
7+
div {
8+
height: 400px;
9+
width: 600px;
10+
position: relative;
11+
background-color: red;
12+
background-repeat: repeat;
13+
background-position: bottom center;
14+
background-image: url("../support/50x50-green.png");
15+
}
16+
</style>
17+
</head>
18+
19+
<body>
20+
<div></div>
21+
</body>
22+
</html>
Loading

0 commit comments

Comments
 (0)