mirror of
https://github.com/servo/servo
synced 2026-05-01 20:07:22 +02:00
Update CSS tests to revision 0698c2aa9ead844b6d7d10eafb096cb1118e13ef
This commit is contained in:
@@ -13,20 +13,20 @@
|
||||
<style>
|
||||
div {
|
||||
background-color: red;
|
||||
background-image: url("support/100x100-blue-and-orange.png");
|
||||
background-image: url("support/100x100-blue-and-orange.png");
|
||||
background-repeat: round; /* round round */
|
||||
background-size: auto 61px;
|
||||
height: 210px;
|
||||
width: 210px;
|
||||
|
||||
/*
|
||||
|
||||
/*
|
||||
Background positioning area is 210px wide by 210px tall.
|
||||
The set background size height is 61px. But because
|
||||
background repeat is round, then the background image
|
||||
is rescaled as follows:
|
||||
Newest height = 210px / (round [210px / 61px]);
|
||||
Newest height = 210px / (round [3.44]);
|
||||
Newest height = 210px / (3);
|
||||
Newest height = 210px / (3);
|
||||
Newest height = 70px;
|
||||
|
||||
The width is rescaled to 70px to keep the original aspect ratio.
|
||||
|
||||
Reference in New Issue
Block a user