Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat component failures leniently in @font-face src: parsing
Adapt font-face src: parsing behavior to more leniently accept a src: line that has parse errors in an individual component. Part of Interop 2023 in the font feature detection and palettes category [1]. Also return serialized values in lowercase to match CSSOM spec. After CSS WG resolution [1] and updated spec text [2] individually failing src: line components for incorrect format() or tech(), or other parse failures per component should not lead to dropping the whole src: line, but only reject the individual component. Implement checks for component sanity and on failure, skip to next comma or end. [1] https://wpt.fyi/results/css/css-fonts/parsing?q=label%3Ainterop-2023-fonts [1] w3c/csswg-drafts#6340 [2] https://drafts.csswg.org/css-fonts-4/#font-face-src-parsing Fixed: 1398933, 857226 Change-Id: Ib94f745fb8b453e21fd981973c29dccb4b722439
- Loading branch information