style: Remove the layout.css.named-pages.enabled pref

Differential Revision: https://phabricator.services.mozilla.com/D175438
This commit is contained in:
Emily McDonough 2023-05-16 20:32:11 +00:00 committed by Martin Robinson
parent f1ae42678a
commit 571136562d
2 changed files with 3 additions and 7 deletions

View file

@ -25,7 +25,6 @@ ${helpers.predefined_type(
"PageName",
"computed::PageName::auto()",
engines="gecko",
gecko_pref="layout.css.named-pages.enabled",
spec="https://drafts.csswg.org/css-page-3/#using-named-pages",
animation_value_type="discrete",
)}

View file

@ -504,13 +504,10 @@ impl<'a, 'b, 'i> AtRuleParser<'i> for NestedRuleParser<'a, 'b> {
let name = KeyframesName::parse(self.context, input)?;
AtRulePrelude::Keyframes(name, prefix)
},
#[cfg(feature = "gecko")]
"page" => {
AtRulePrelude::Page(if static_prefs::pref!("layout.css.named-pages.enabled") {
"page" if cfg!(feature = "gecko") => {
AtRulePrelude::Page(
input.try_parse(|i| PageSelectors::parse(self.context, i)).unwrap_or_default()
} else {
PageSelectors::default()
})
)
},
"-moz-document" if cfg!(feature = "gecko") => {
let cond = DocumentCondition::parse(self.context, input)?;