From d4742aefb9863a3e9dbe998ab38a6ed0bc86bb1d Mon Sep 17 00:00:00 2001 From: Frederic Wang Date: Sat, 8 Oct 2022 11:37:32 +0000 Subject: [PATCH] style: disable lquote/rquote attributes on the element This commit introduces a MathML preference for the legacy implementation of the lquote/rquote attributes, and disable it by default. This feature is not implemented in Chromium or WebKit, not part of MathML Core and Firefox's implementation has issues (e.g. bugs 787215 and 1108608). Differential Revision: https://phabricator.services.mozilla.com/D158479 --- components/style/gecko/media_features.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/style/gecko/media_features.rs b/components/style/gecko/media_features.rs index 614d12135d8..f44fd788b00 100644 --- a/components/style/gecko/media_features.rs +++ b/components/style/gecko/media_features.rs @@ -585,7 +585,7 @@ macro_rules! bool_pref_feature { /// to support new types in these entries and (2) ensuring that either /// nsPresContext::MediaFeatureValuesChanged is called when the value that /// would be returned by the evaluator function could change. -pub static MEDIA_FEATURES: [QueryFeatureDescription; 61] = [ +pub static MEDIA_FEATURES: [QueryFeatureDescription; 62] = [ feature!( atom!("width"), AllowsRanges::Yes, @@ -885,4 +885,9 @@ pub static MEDIA_FEATURES: [QueryFeatureDescription; 61] = [ atom!("-moz-mathml-core-maction-and-semantics"), "mathml.legacy_maction_and_semantics_implementations.disabled" ), + // media query for MathML Core's implementation of ms + bool_pref_feature!( + atom!("-moz-mathml-core-ms"), + "mathml.ms_lquote_rquote_attributes.disabled" + ), ];