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
This commit is contained in:
Jonathan Kew 2022-08-24 11:27:42 +00:00 committed by Martin Robinson
parent c8e3dc4d19
commit 0cdf97c881

View file

@ -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()
{