Float values in styles, applied by JS, are seperated by comma and not a period
Reported by
duwe...@googlemail.com,
Jun 25 2016
|
|||||
Issue description
Chrome Version : 51.0.2704.103
Other browsers tested:
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari: OK
Firefox: OK
IE: OK
What steps will reproduce the problem?
(1) Open dev tools
(2) Enter document.body.style.left = "3.2323%"
(3) Inspect body css and you will get 3,2323% at left style
What is the expected result?
CSS should be left: 3.2323%
What happens instead?
CSS is invalid with left property: 3,2323%
I am living in Germany and I assume, that there is some problem applying a float in a string converting it into local string.
,
Jun 27 2016
,
Jul 2 2016
Unable to reproduce on 53.0.2783.2 (Official Build) dev (64-bit) on Linux. Are you able to reproduce this on this issue page?
,
Jul 7 2016
Yes, can you please try on Canary and see if the issue still exists for you?
,
Jul 16 2016
Can't repro as well neither with German nor Russian (both use comma as decimal separator) region setting. Closing it.
,
Feb 27 2017
I confirm this issue with russian system locale when browser is launched from CLI. Chrome 56 Mac OS 10.12.3
,
Apr 10 2018
I confirm this issue with russian system locale Use Electron.js ( base Node.js with Chromium ) Mac OS 10.13.2
,
Jul 18
Hi, I also can confirm that the issue is still there. I'm having this issue with Electron embedded chromium 59 on MacOS with Russian locale. For example I'm setting this css rule in stylesheet: transition-duration: .5s; And then I read it back from styleSheet.cssRules with js The rule will look like this: transition-duration: 0,5s;
,
Jul 18
Sorry, I didn't realize that the bug is reported for DevTools. I don't think this issue is DevTools related, I think that the issue with Chromium itself.
,
Nov 29
I can confirm this on Windows 10 for Chrome Version 70.0.3538.110. Calculation is used inside Invision Community Software for width of some table columns and thus the tables won't show as comma seperators are used. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by duwe...@googlemail.com
, Jun 25 2016