mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Test with fixes for background repeat: spaced
Test the interaction between background-repeat: spaced and CSS borders. Fix tile_image_axis() function.
This commit is contained in:
parent
3b3d4a9853
commit
cf12e27364
16 changed files with 144 additions and 90 deletions
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Tiled gradient with spaces is repeated behind the border.</title>
|
||||
<link rel="match" href="reference/gradient-repeat-spaced-with-borders.html">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-space">
|
||||
<style>
|
||||
#foo {
|
||||
width: 65px;
|
||||
height: 65px;
|
||||
border: solid 35px transparent;
|
||||
background: radial-gradient(transparent 50%, #36c 50%);
|
||||
background-size: 30px 30px;
|
||||
background-repeat: space;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id="foo"></div>
|
||||
</body>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Spaced Gradient</title>
|
||||
<style>
|
||||
#foo {
|
||||
width: calc(4 * 30px + 3 * 5px);
|
||||
height: calc(4 * 30px + 3 * 5px);
|
||||
background: radial-gradient(transparent 50%, #36c 50%);
|
||||
background-size: 30px 30px;
|
||||
background-repeat: space;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id="foo"></div>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue