mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Further changes required by Servo
This commit is contained in:
parent
4559546fbb
commit
bb55e923bb
15 changed files with 76 additions and 38 deletions
|
@ -553,7 +553,7 @@ impl<'a> BuilderForBoxFragment<'a> {
|
|||
let style = &self.fragment.style;
|
||||
let b = style.get_background();
|
||||
let background_color = style.resolve_color(b.background_color.clone());
|
||||
if background_color.alpha > 0 {
|
||||
if background_color.alpha > 0.0 {
|
||||
// https://drafts.csswg.org/css-backgrounds/#background-color
|
||||
// “The background color is clipped according to the background-clip
|
||||
// value associated with the bottom-most background image layer.”
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue