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:
Emilio Cobos Álvarez 2022-09-08 11:57:15 +00:00 committed by Martin Robinson
parent 3cad1db7f9
commit ccad16b560

View file

@ -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;
}
}