Bug 169064
Summary: | CSS Variables convert double quotes to single quotes in getPropertyValue() | ||
---|---|---|---|
Product: | WebKit | Reporter: | Michał Gołębiowski-Owczarek <m.goleb+bugzilla> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | bfulgham, cdumez, hyatt, koivisto, simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | |||
Bug Blocks: | 110007 |
Michał Gołębiowski-Owczarek
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Brent Fulgham
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
<rdar://problem/97084846>
Michał Gołębiowski-Owczarek
Yes, the spec has changed, see https://github.com/w3c/csswg-drafts/issues/774
The value should now be trimmed.
Michał Gołębiowski-Owczarek
I've noticed WPTs didn't account for this spec change so I submitted https://github.com/web-platform-tests/wpt/issues/34880