mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Tweak background: transparent handling so that color: transparent doesn't override UA sheet backgrounds.
Differential Revision: https://phabricator.services.mozilla.com/D68408
This commit is contained in:
parent
9fd243bb39
commit
3cb019ac1e
1 changed files with 5 additions and 6 deletions
|
@ -372,13 +372,12 @@ fn tweak_when_ignoring_colors(
|
|||
// We honor color and background-color: transparent, and
|
||||
// "revert-or-initial" otherwise.
|
||||
PropertyDeclaration::BackgroundColor(ref color) => {
|
||||
if color.is_transparent() {
|
||||
return;
|
||||
if !color.is_transparent() {
|
||||
let color = builder.device.default_background_color();
|
||||
declarations_to_apply_unless_overriden.push(
|
||||
PropertyDeclaration::BackgroundColor(color.into())
|
||||
)
|
||||
}
|
||||
let color = builder.device.default_background_color();
|
||||
declarations_to_apply_unless_overriden.push(
|
||||
PropertyDeclaration::BackgroundColor(color.into())
|
||||
)
|
||||
}
|
||||
PropertyDeclaration::Color(ref color) => {
|
||||
// otherwise.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue