-
Notifications
You must be signed in to change notification settings - Fork 465
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
Erroneous space inserted in { property: value-as-digit\9; } #1098
Comments
Thanks for the report @atdrago. Could you please also provide a test case in sass-spec? Here's a good example of one sass/sass-spec#315. @mgreter this is a regression from 3.1.0. I'll do a bisect shortly. |
Thanks for the response, @xzyfer. Added a PR sass/sass-spec#327 |
Specs added sass/sass-spec#331. Turns out this regression is more server then first suspected. div {
opacity: 1\9;
width: 500px\9;
color: #f00\9\0\;
} Ruby Sass div {
opacity: 1\9;
width: 500px\9;
color: #f00\9\0\;; } Libsass 3.1.0 div {
opacity: 1\9;
width: 500px\9;
color: #f00 \9\0\;; } Libsass 3.2.0-beta.5 div {
opacity: 1 \9;
width: 500px \9;
color: #f00\9\0\\; } // extra / |
IMO it's related to our way to parse every list as a space or comma separated list. Not sure how ruby sass handles this internally. Since this syntax is used as a IE css hack, we could make sure that the way we output it currently will still be valid for those old IE UAs. If that is the case, it is IMO not a real blocker for the next release. We do allow escaped sequences in identifiers ( |
This is true.
Assuming what we output still has the desired affect I also agree. I'll make sure the "hack" is still repected with the space. |
Adding a
\9
after a property value that ends in a digit adds an erroneous space before the\
.For example,
div { opacity: 1\9; }
Should output
But instead outputs
Ruby sass compiles the value without the inserted space.
The text was updated successfully, but these errors were encountered: