mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
layout: Take the value of background-clip
into account when
determining the painting area for background images and gradients. See: https://drafts.csswg.org/css-backgrounds-3/#the-background-clip
This commit is contained in:
parent
c9242309cb
commit
fdb791bdd5
1 changed files with 2 additions and 2 deletions
|
@ -335,7 +335,7 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
Some(computed::Image::LinearGradient(ref gradient)) => {
|
||||
self.build_display_list_for_background_linear_gradient(display_list,
|
||||
level,
|
||||
absolute_bounds,
|
||||
&bounds,
|
||||
&clip,
|
||||
gradient,
|
||||
style)
|
||||
|
@ -345,7 +345,7 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
display_list,
|
||||
layout_context,
|
||||
level,
|
||||
absolute_bounds,
|
||||
&bounds,
|
||||
&clip,
|
||||
image_url)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue