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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-27 15:03 PDT by fantasai
Modified: 2018-06-28 13:31 PDT (History)
2 users (show)

See Also:


Attachments
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.

https://github.com/w3c/csswg-drafts/issues/633

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.