-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby-Sass converts color values to shorter representations, LibSass doesn't #47
Comments
Ping @xzyfer for opinion. :) |
LibSass does do this. Like Ruby sass it only happens in compressed mode. In
|
Soooo no incompatibility, right? |
Not as far as I know.
|
Closing then, thanks! |
Sorry, but this is not true. My observation is about compressed mode. You have to reopen this bug. Sass packages involved are:
|
Please provide a sassmiester gist showing an example. The code for this
|
Here is the SassMeister gist: bittner/SassMeister-input.scss |
This is a bug in recent versions, but the feature exists. |
LibSass bug sass/libsass#1733 |
I've just switched from
gulp-ruby-sass
togulp-sass
, simply for the issue of CSS inline imports (sass/#556, sass-loader/#101). And, yes, inline-importing CSS files works like a charm with the LibSass-based implementation. This is one "incompatibility". 😏Comparing the generated CSS I see that the LibSass-generated file is slightly bigger, because of color values that are kind if "minified" by the Ruby implementation, whereas with LibSass they remain as they are in the original source file (
.sass
), e.g.original = LibSass --> Ruby-Sass
#ffffcc
-->#ffc
#CC0000
-->#c00
#FF0000
-->red
#AAAAAA
-->#aaa
#99CC66
-->#9c6
#FF6600
-->#f60
#CC3300
-->#c30
#330099
-->#309
#336666
-->#366
#003333
-->#033
#CC3300
-->#c30
Interestingly, not all color values are converted, some remain unchanged, e.g.
#FFCCCC
(but this occurs in abackground-color
, not incolor
)#006699
(color
)#00AA88
(color
)#CC0000
(color
, even though converted earlier in the document in aborder
-- see above)Is this an incompatibility I'm supposed to give notice about, or is this behavior maybe configurable in LibSass? I'd love to see the output matching completely.
The text was updated successfully, but these errors were encountered: