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:
Patrick Walton 2016-01-06 10:32:06 -08:00
parent e3dd36f0f3
commit c9242309cb
2 changed files with 4 additions and 2 deletions

View file

@ -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>

View file

@ -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>