diff --git a/components/style/properties/longhands/page.mako.rs b/components/style/properties/longhands/page.mako.rs index aa5715db46b..b857ce0ca39 100644 --- a/components/style/properties/longhands/page.mako.rs +++ b/components/style/properties/longhands/page.mako.rs @@ -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", )} diff --git a/components/style/stylesheets/rule_parser.rs b/components/style/stylesheets/rule_parser.rs index 9b8afbb842a..19c1720c16c 100644 --- a/components/style/stylesheets/rule_parser.rs +++ b/components/style/stylesheets/rule_parser.rs @@ -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)?;