CSSStyleDeclaration.setProperty funky parsing for custom variables
Reported by
mauricio...@gmail.com,
Jun 6 2016
|
||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36
Steps to reproduce the problem:
Set an rgb value to a custom variable: `element.style.setProperty('--some-variable', '#123456')`.
What is the expected behavior?
The custom variable should accept the right rgb value.
What went wrong?
Instead, it adds garbage to the value.
This only happens for rgb colors starting with a number:
'#123456' -> '#\31 23456'
'#012345' -> '#\30 12345'
'123456' -> '123456'
'abcdef' -> 'abcdef'
'#abcdef' -> '#abcdef'
'#a00' -> '#a00'
'#0a0' -> '#\30 a0'
Did this work before? N/A
Chrome version: 51.0.2704.79 Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 21.0 r0
Tested on Stable and Canary channels -- both presented the same problem.
,
Jun 7 2016
Surely. See attachment or head over to https://f001.backblaze.com/file/mrkishi/tests/chromium-issue-617514.html (the code is readily displayed, by the way).
,
Jun 8 2016
Thank you for providing more feedback. Adding requester "tkonchada@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 15 2016
Thanks for the html file. Able to reproduce the issue on mac, win8 and linux chrome version 51.0.2704.106 and 52.0.2743.75 - Black color displayed This is working fine in latest dev 53.0.2785.8 and canary 54.0.2797.0 Could you please upgrade to latest builds and update the thread with your observations. @dev: Could you please let us know if a reverse bisect is needed in this case.
,
Jul 15 2016
Thank you! I have confirmed it to be working on the latest Canary (54.0.2797.0), while still broken in the latest stable (51.0.2704.106). I don't have access to a box with the dev channel *right now*, but given our other experiences matched, that one should as well. Let me know if there's anything I could help with.
,
Jul 18 2016
|
||||
►
Sign in to add a comment |
||||
Comment 1 by tkonch...@chromium.org
, Jun 7 2016Labels: Needs-Feedback