mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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)) => {
|
Some(computed::Image::LinearGradient(ref gradient)) => {
|
||||||
self.build_display_list_for_background_linear_gradient(display_list,
|
self.build_display_list_for_background_linear_gradient(display_list,
|
||||||
level,
|
level,
|
||||||
absolute_bounds,
|
&bounds,
|
||||||
&clip,
|
&clip,
|
||||||
gradient,
|
gradient,
|
||||||
style)
|
style)
|
||||||
|
@ -345,7 +345,7 @@ impl FragmentDisplayListBuilding for Fragment {
|
||||||
display_list,
|
display_list,
|
||||||
layout_context,
|
layout_context,
|
||||||
level,
|
level,
|
||||||
absolute_bounds,
|
&bounds,
|
||||||
&clip,
|
&clip,
|
||||||
image_url)
|
image_url)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue