Bug 187117 - Forwards-compatible parsing of @font-face src descriptor: split on commas, discard invalid parts rather than entire descriptor
Summary: Forwards-compatible parsing of @font-face src descriptor: split on commas, di...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
Keywords: InRadar
Depends on:
Reported: 2018-06-27 15:03 PDT by fantasai
Modified: 2022-07-15 13:30 PDT (History)
4 users (show)

See Also:

testcase (requires Ahem) (193 bytes, text/html)
2018-06-27 15:03 PDT, fantasai
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description fantasai 2018-06-27 15:03:46 PDT
Created attachment 343755 [details]
testcase (requires Ahem)

In light of discussions for extending the format() descriptor to handle features (e.g. colors, variations) within a particular font format, the CSSWG recently resolved to update the parsing rules for @font-face's src descriptor to be more forwards-compatible, using Media Queries style parsing rules to split on top-level commas, and discard only the invalid items in the src list rather than throwing out the entire descriptor.


I think this is an important change to implement even before the new features are implemented, as it means WebKit will be forwards-compatible with content authored using new format() features, whatever they end up being.
Comment 1 Radar WebKit Bug Importer 2022-07-15 13:30:25 PDT