mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
c8e3dc4d19
commit
0cdf97c881
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue