CSS Variables convert single quotes to double quotes in getPropertyValue()
Reported by
m.go...@gmail.com,
Mar 1 2017
|
||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Steps to reproduce the problem: 1. Open the attached test case or go to https://jsfiddle.net/stx0k3dh/6/ 2. Observe the last property value - it doesn't match the input. 3. What is the expected behavior? What went wrong? Single quotes are changed into double quotes in the value. Did this work before? No Does this work in other browsers? No All tests work fine in Firefox 51. Most of them fail in Safari 10. Safari 10.1 passes the test that Chrome fails but... fails the last but one, i.e. turns double quotes into single ones (oh irony). Chrome version: 58.0.3026.3 Channel: canary OS Version: OS X 10.12.3 Flash Version:
,
Mar 1 2017
I reported the WebKit issue at https://bugs.webkit.org/show_bug.cgi?id=169064
,
Mar 2 2017
,
Mar 2 2017
Able to reproduce the issue on Mac 10.12.3, Windows 7 & Ubuntu 14.04 using chrome stable#56.0.2924.87, Canary#58.0.3027.0 as per the below JSfiddle. https://jsfiddle.net/stx0k3dh/6/ & observed "single quotes: FAIL (expected: «'value5'», got: «"value5"»)" in last property value. This is non regression issue as issue observed from M49 builds to latest chrome versions.Observed all 'Fail' results in the erlier versions of M-49. Hence marking this issue as 'Untriaged' Please find the attached screencast for reference. Thank you.
,
Mar 6 2017
Is getPropertyValue() from TypedOM?
,
Mar 6 2017
No, it's not - it's part of regular CSSStyleDeclaration in this spec: https://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html getPropertyValue Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block. Parameters: propertyName of type DOMString. The name of the CSS property. See the CSS property index. Return Value: DOMString Returns the value of the property if it has been explicitly set for this declaration block. Returns the empty string if the property has not been set.
,
Mar 6 2017
,
Mar 6 2017
Same as issue 661854?
,
Mar 6 2017
,
Mar 8 2017
damn, that's annoying. should not be even possible to work this way. wasted few hours yesterday working on http://glasvezelvergelijken.org/. hope you guys can fix this asap so i can remove the workaround |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by tkent@chromium.org
, Mar 1 2017