Bug 303627

Summary: Web Inspector: Pull CSS property keyword completions from the backend instead of hardcoding them
Product: WebKit Reporter: Brandon <brandonstewart>
Component: Web InspectorAssignee: Brandon <brandonstewart>
Status: RESOLVED FIXED    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Brandon
Reported 2025-12-05 06:58:12 PST
CSSKeywordCompletions.js contained hardcoded lists of valid keyword values for CSS properties like `display`. The backend already provides keyword values for properties that are "keyword-fast-path eligible" via getSupportedCSSProperties(). However, properties like `display` that use custom parsers weren't included. This patch adds a new generated function CSSProperty::validKeywordsForProperty() that returns the valid keyword values from CSSProperties.json.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-12-05 06:58:18 PST
Brandon
Comment 2 2025-12-05 06:59:57 PST
EWS
Comment 3 2025-12-09 18:26:09 PST
Committed 304195@main (68e73e36fe06): <https://commits.webkit.org/304195@main> Reviewed commits have been landed. Closing PR #54923 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.