mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Remove the layout.css.named-pages.enabled pref
Differential Revision: https://phabricator.services.mozilla.com/D175438
This commit is contained in:
parent
f1ae42678a
commit
571136562d
2 changed files with 3 additions and 7 deletions
|
@ -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",
|
||||
)}
|
||||
|
|
|
@ -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)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue