mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Allow backplating if there's a background-image which is none
Differential Revision: https://phabricator.services.mozilla.com/D156756
This commit is contained in:
parent
3cad1db7f9
commit
ccad16b560
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ fn tweak_when_ignoring_colors(
|
|||
PropertyDeclaration::BackgroundImage(ref bkg) => {
|
||||
use crate::values::generics::image::Image;
|
||||
if static_prefs::pref!("browser.display.permit_backplate") {
|
||||
if bkg.0.iter().all(|image| matches!(*image, Image::Url(..))) {
|
||||
if bkg.0.iter().all(|image| matches!(*image, Image::Url(..) | Image::None)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue