Bug 169064 - CSS Variables convert double quotes to single quotes in getPropertyValue()
Summary: CSS Variables convert double quotes to single quotes in getPropertyValue()
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 110007
  Show dependency treegraph
 
Reported: 2017-03-01 15:55 PST by Michał Gołębiowski-Owczarek
Modified: 2022-09-05 05:56 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Gołębiowski-Owczarek 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.
Comment 1 Brent Fulgham 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.
Comment 2 Radar WebKit Bug Importer 2022-07-15 11:24:14 PDT
<rdar://problem/97084846>
Comment 3 Michał Gołębiowski-Owczarek 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.
Comment 4 Michał Gołębiowski-Owczarek 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