Closed Bug 1436997 Opened 6 years ago Closed 6 years ago

Support variation-font format hints for @font-face resources

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

CSS Fonts Level 4 introduces new format hints for fonts that require variation support, so authors can provide alternative resources for browsers that don't support variations. Spec: https://drafts.csswg.org/css-fonts-4/#src-desc.
There should eventually be much more extensive variation-font tests coming along in web-platform tests (Microsoft has a bunch of testcases currently under review, for example), but in the meantime this is a simple reftest to check that we accept the new format hints (only when our variation-font pref is enabled).
Attachment #8949713 - Flags: review?(jwatt)
Attachment #8949706 - Flags: review?(jwatt) → review+
Attachment #8949713 - Flags: review?(jwatt) → review+
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/12b89457c623
When variation-font support is enabled, accept new CSS Fonts 4 format-hint strings for variation fonts. r=jwatt
https://hg.mozilla.org/integration/mozilla-inbound/rev/4697cdd9969f
Add reftests to check that we accept the *-variations format strings iff the variation-font pref is enabled. r=jwatt
https://hg.mozilla.org/mozilla-central/rev/12b89457c623
https://hg.mozilla.org/mozilla-central/rev/4697cdd9969f
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: