Bug 1519399 - Fix browser_parsable_css.js for scroll-anchoring as it's behind a pref. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D16404

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ryan Hunt 2019-01-14 14:31:03 +00:00
parent 9ed87684ba
commit 98eed596c7

View File

@ -95,6 +95,14 @@ if (!Services.prefs.getBoolPref("layout.css.scrollbar-width.enabled")) {
});
}
if (!Services.prefs.getBoolPref("layout.css.scroll-anchoring.enabled")) {
whitelist.push({
sourceName: /webconsole\.css$/i,
errorMessage: /Unknown property .*\boverflow-anchor\b/i,
isFromDevTools: true,
});
}
let propNameWhitelist = [
// These custom properties are retrieved directly from CSSOM
// in videocontrols.xml to get pre-defined style instead of computed