Search code examples
javascriptsafariletter-spacing

Positioning: style and computed style have different values safari


I have some trouble with letter-spacing style in Safari 7.0. I have an input into which I enter the value letter-spacing style for text in the page. But after I enter values, computed styles and ruled style have difference. For example I enter 36.4px letter-spacing. This is my computed and ruled style: enter image description here

I tried change letter-spacing with console, but i have the same trouble trouble

How can I fix this trouble?


Solution

  • In General, Decimal notation will work for % not px. Refer the below SO Answer:
    Are the decimal places in a CSS width respected?