From ccad16b5601f044cba721f2139b0d964019232bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 8 Sep 2022 11:57:15 +0000 Subject: [PATCH] style: Allow backplating if there's a background-image which is `none` Differential Revision: https://phabricator.services.mozilla.com/D156756 --- components/style/properties/cascade.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/properties/cascade.rs b/components/style/properties/cascade.rs index 057ec46adda..b1a823f96be 100644 --- a/components/style/properties/cascade.rs +++ b/components/style/properties/cascade.rs @@ -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; } }