mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Correct edge case for background color clip
Use the color clip corresponding to the last background-image instead of the last background-clip. (There may be more clips than images and clips are repeated if there are less clips than images.) Add a test.
This commit is contained in:
parent
eda59780e9
commit
46283af211
4 changed files with 66 additions and 4 deletions
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Green Rectangle</title>
|
||||
<style>
|
||||
div {
|
||||
width: 120px;
|
||||
height: 100px;
|
||||
background-color: green;
|
||||
background-clip: content-box;
|
||||
border-style: solid;
|
||||
border-width: 10px;
|
||||
border-color: transparent;
|
||||
}
|
||||
</style>
|
||||
<div></div>
|
Loading…
Add table
Add a link
Reference in a new issue