Bug 260066

Summary: [CSS] <family-name> should forbid generic family
Product: WebKit Reporter: Matthieu Dubet <m_dubet>
Component: WebCore Misc.Assignee: Tim Nguyen (:ntim) <ntim>
Status: RESOLVED FIXED    
Severity: Normal CC: gsnedders, ntim, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Matthieu Dubet 2023-08-11 05:28:22 PDT
https://drafts.csswg.org/css-fonts/#family-name-value

"Any identifier which could be misinterpreted as a pre-defined keyword in the font-family value definition, or the CSS-wide keywords, is not allowed."

We should be extra cautious to forbid usage of unquoted pre-defined keyword (serif, system-ui,...) when parsing a <family-name>
Comment 1 Radar WebKit Bug Importer 2023-08-11 05:28:53 PDT
<rdar://problem/113746537>
Comment 2 Matthieu Dubet 2023-08-11 05:51:13 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16602
Comment 3 Vitor Roriz 2023-09-19 15:05:17 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17938
Comment 4 EWS 2023-09-20 09:27:20 PDT
Committed 268203@main (f52eb126c71f): <https://commits.webkit.org/268203@main>

Reviewed commits have been landed. Closing PR #16602 and removing active labels.
Comment 5 Tim Nguyen (:ntim) 2023-10-06 07:46:37 PDT
*** Bug 262316 has been marked as a duplicate of this bug. ***