NEW 169064
CSS Variables convert double quotes to single quotes in getPropertyValue()
https://bugs.webkit.org/show_bug.cgi?id=169064
Summary CSS Variables convert double quotes to single quotes in getPropertyValue()
Michał Gołębiowski-Owczarek
Reported 2017-03-01 15:55:01 PST
Steps to reproduce the problem: 1. Open https://jsfiddle.net/stx0k3dh/6/ 2. Observe the last but one property value - it doesn't match the input. All tests work fine in Firefox 51. Chrome 56 passes the test that WebKit fails but... fails the last one, i.e. turns single quotes into double ones (oh irony). I reported the Chrome issue at https://bugs.chromium.org/p/chromium/issues/detail?id=697663.
Attachments
Brent Fulgham
Comment 1 2022-07-15 11:24:02 PDT
All browsers fail some of the tests (perhaps the standards have changed): Chrome: 1. Last line makes double quotes instead of single. Firefox: 1. Second line does not provide a leading space. But Safari fails many: 1. Second line does not provide a leading space. 2. Third line does not provide a trailing space. 3. Last line makes double quotes instead of single.
Radar WebKit Bug Importer
Comment 2 2022-07-15 11:24:14 PDT
Michał Gołębiowski-Owczarek
Comment 3 2022-07-18 10:55:02 PDT
Yes, the spec has changed, see https://github.com/w3c/csswg-drafts/issues/774 The value should now be trimmed.
Michał Gołębiowski-Owczarek
Comment 4 2022-07-18 11:12:16 PDT
I've noticed WPTs didn't account for this spec change so I submitted https://github.com/web-platform-tests/wpt/issues/34880
Note You need to log in before you can comment on or make changes to this bug.