[Webkit-unassigned] [Bug 187117] New: Forwards-compatible parsing of @font-face src descriptor: split on commas, discard invalid parts rather than entire descriptor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 27 15:03:46 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=187117

            Bug ID: 187117
           Summary: Forwards-compatible parsing of @font-face src
                    descriptor: split on commas, discard invalid parts
                    rather than entire descriptor
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: fantasai.bugs at inkedblade.net

Created attachment 343755

  --> https://bugs.webkit.org/attachment.cgi?id=343755&action=review

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180627/1683fba4/attachment-0001.html>


More information about the webkit-unassigned mailing list