Bug 260066 - [CSS] <family-name> should forbid generic family
Summary: [CSS] <family-name> should forbid generic family
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Nguyen (:ntim)
URL:
Keywords: InRadar
: 262316 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-08-11 05:28 PDT by Matthieu Dubet
Modified: 2023-10-06 07:46 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***