Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly place images with background-position: center
Add a regression ref test. See also #19680.
- Loading branch information
Showing
4 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
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
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
16 changes: 16 additions & 0 deletions
16
tests/wpt/web-platform-tests/css/css-backgrounds/background-image-centered-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,16 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>Centered Background Gradient</title> | ||
<style> | ||
#a { | ||
width: 200px; | ||
height: 150px; | ||
border-style: solid; | ||
border-width: 10px; | ||
background-position: 0px 0px; | ||
background-image: repeating-radial-gradient(blue, green 20px); | ||
} | ||
</style> | ||
<body> | ||
<div id="a"></div> | ||
</body> |
18 changes: 18 additions & 0 deletions
18
tests/wpt/web-platform-tests/css/css-backgrounds/background-image-centered.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,18 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>Centered Background Gradient</title> | ||
<link rel="match" href="background-image-centered-ref.html"> | ||
<link rel="help" href="http://www.w3.org/TR/css3-background/"> | ||
<style> | ||
#a { | ||
width: 200px; | ||
height: 150px; | ||
border-style: solid; | ||
border-width: 10px; | ||
background-position: center center; | ||
background-image: repeating-radial-gradient(blue, green 20px); | ||
} | ||
</style> | ||
<body> | ||
<div id="a"></div> | ||
</body> |