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

Description Antti Koivisto 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.
Comment 1 Radar WebKit Bug Importer 2022-12-22 06:19:25 PST
<rdar://problem/103636334>
Comment 2 Antti Koivisto 2022-12-22 06:29:49 PST
Pull request: https://github.com/WebKit/WebKit/pull/8003
Comment 3 Antti Koivisto 2022-12-22 07:07:43 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/37647
Comment 4 EWS 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.