Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Explicitly set Sass number precision #1029

kylemacfarlane opened this Issue Sep 22, 2012 · 0 comments


None yet
1 participant

I was having a problem where an old stylesheet was suddenly displaying a little differently in Webkit. Looking at the generated CSS I could see that line-height set by the vertical rhythm module now had 15 instead of 3 decimal places. This only seemed to make a difference in Webkit based browsers so presumably the others already round to 3.

The reason behind this is that Sass 3.1.8 added customisable number precision. It says that it defaults to 3 but it doesn't seem like the default ever works (at least in conjunction with Compass).

For me the fix was to add the following to my config.rb:

Sass::Script::Number.precision = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment