Tokenisation and parsing for whitespaces described in CSS Syntax Module Level 3 matches the current WebKit behavior in custom properties. Some WPTs still have wrong expectations. Both leading and trailing whitespaces should be stripped: https://drafts.csswg.org/css-syntax/#consume-declaration 2. While the next input token is a <whitespace-token>, consume the next input token. ... 7. While the last token in decl’s value is a <whitespace-token>, remove that token." Middle whitespaces collapse to a single <whitespace-token>: https://drafts.csswg.org/css-syntax/#consume-token whitespace Consume as much whitespace as possible. Return a <whitespace-token>.
<rdar://problem/104162464>
Pull request: https://github.com/WebKit/WebKit/pull/8573
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/37923
Committed 258866@main (7a3b462e1d00): <https://commits.webkit.org/258866@main> Reviewed commits have been landed. Closing PR #8573 and removing active labels.