mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
tests: Make linear_gradients_lengths_a.html
and
`linear_gradients_lengths_ref.html` use `background-clip: content-box`. The tests clearly expect the background painting area to have width of 100px, but since the default value of `background-clip` is `border-box` and the boxes in question have a 1-pixel border the background painting areas are actually 102px. This commit fixes the tests so that the width of the background painting area is actually 100px.
This commit is contained in:
parent
e3dd36f0f3
commit
c9242309cb
2 changed files with 4 additions and 2 deletions
|
@ -9,9 +9,10 @@ section {
|
|||
width: 100px;
|
||||
height: 100px;
|
||||
border: solid black 1px;
|
||||
background-clip: content-box;
|
||||
}
|
||||
#a {
|
||||
background: linear-gradient(to right, white, white 30px, black 30px, black);
|
||||
background-image: linear-gradient(to right, white, white 30px, black 30px, black);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
|
|
@ -8,9 +8,10 @@ section {
|
|||
width: 100px;
|
||||
height: 100px;
|
||||
border: solid black 1px;
|
||||
background-clip: content-box;
|
||||
}
|
||||
#a {
|
||||
background: linear-gradient(to right, white, white 30%, black 30%, black);
|
||||
background-image: linear-gradient(to right, white, white 30%, black 30%, black);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue