New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 697663 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 661854
Owner: ----
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

CSS Variables convert single quotes to double quotes in getPropertyValue()

Reported by m.go...@gmail.com, Mar 1 2017

Issue description

UserAgent: 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:

 

Comment 1 by tkent@chromium.org, Mar 1 2017

Components: -Blink>DOM Blink>CSS

Comment 2 by m.go...@gmail.com, Mar 1 2017

I reported the WebKit issue at https://bugs.webkit.org/show_bug.cgi?id=169064

Comment 3 by ajha@chromium.org, Mar 2 2017

Labels: Needs-Triage-M58
Labels: -Needs-Triage-M58 M-58 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
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.

697663.mp4
543 KB View Download
Labels: Hotlist-Interop
Owner: meade@chromium.org
Status: Available (was: Untriaged)
Is getPropertyValue() from TypedOM?

Comment 6 by meade@chromium.org, Mar 6 2017

Cc: meade@chromium.org
Labels: Hotlist-GoodFirstBug Update-Quarterly
Owner: ----
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.

Comment 7 by meade@chromium.org, Mar 6 2017

Cc: sashab@chromium.org
Same as issue 661854?

Comment 9 by meade@chromium.org, Mar 6 2017

Mergedinto: 661854
Status: Duplicate (was: Available)
I suppose it is.
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