Could there be a glitch in Chrome version 65.0.3325.146 on macOS High Sierra causing CSSStyleSheet to apply locale to its values? The code below demonstrates the issue, resulting in incorrect output for users with Russian system locale utilizing "," as the decimal separator.
<script>
var el = document.createElement('style');
el.innerHTML = '.someclass {font-size: 3.5rem; line-height: 1.5rem;}';
document.head.appendChild(el);
console.log(el.sheet.cssRules[0].style.cssText);
</script>
The displayed output is:
font-size: 3,5rem; line-height: 1,5rem;
The expected output should be:
font-size: 3.5rem; line-height: 1.5rem;
A screenshot showcasing the problem (as viewed in the browser console):