From 0cdf97c881d8b1133fccfe4ab6cbc066d6c803af Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Wed, 24 Aug 2022 11:27:42 +0000 Subject: [PATCH] style: Put the @font-face src tech() function behind a pref, enabled only on Nightly for now There are a couple of current issues/discussions that may lead to a change in the set of supported keywords, so we may want to hold back a little on actually shipping this. - In https://github.com/w3c/IFT/pull/113, the WebFonts WG proposes several new incremental-* keywords (and maybe implies dropping the currently-defined incremental?) - In https://github.com/w3c/csswg-drafts/issues/7633, I just proposed renaming the feature-* keywords to features-* (plural) for better readability; I'd like to see a decision on that before we ship this to release. Differential Revision: https://phabricator.services.mozilla.com/D155458 --- components/style/font_face.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/font_face.rs b/components/style/font_face.rs index 381ea00bc1e..d9c547a1e18 100644 --- a/components/style/font_face.rs +++ b/components/style/font_face.rs @@ -562,7 +562,7 @@ impl Parse for Source { }; // Parse optional tech() - let tech_flags = if input + let tech_flags = if static_prefs::pref!("layout.css.font-tech.enabled") && input .try_parse(|input| input.expect_function_matching("tech")) .is_ok() {