Bug 249770

Summary: [@property] Whitespaces around initial-value should be trimmed
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Antti Koivisto <koivisto>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/37647

Antti Koivisto
Reported 2022-12-22 06:18:27 PST
Partially revert https://commits.webkit.org/258215@main. It turns out that WebKit whitespace handling for custom properties (where whitespace is always trimmed) is correct per https://drafts.csswg.org/css-syntax-3/#consume-declaration and this applies to initial-value too. This is test by imported/w3c/web-platform-tests/css/css-syntax/declarations-trim-whitespace.html which we pass and other engines fail. Update the @property tests to the spec.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-12-22 06:19:25 PST
Antti Koivisto
Comment 2 2022-12-22 06:29:49 PST
Antti Koivisto
Comment 3 2022-12-22 07:07:43 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/37647
EWS
Comment 4 2022-12-22 09:19:21 PST
Committed 258245@main (4f0ccda88791): <https://commits.webkit.org/258245@main> Reviewed commits have been landed. Closing PR #8003 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.