Skip to content
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

Escape SassScript in custom variable values #24354

Merged
merged 4 commits into from Oct 14, 2017
Merged

Escape SassScript in custom variable values #24354

merged 4 commits into from Oct 14, 2017

Conversation

glebm
Copy link
Member

@glebm glebm commented Oct 12, 2017

@glebm
Copy link
Member Author

glebm commented Oct 12, 2017

Hmm, this appears to break font-family with libsass:

-  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
-  --font-family-monospace: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
+  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
+  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
 }

@glebm
Copy link
Member Author

glebm commented Oct 12, 2017

Finally 😅 The above commit fixes it for both Ruby Sass and libsass.

@XhmikosR
Copy link
Member

@glebm: do we support Sass too? I thought we only support what we have in the v4-dev, node-sass.

@glebm
Copy link
Member Author

glebm commented Oct 13, 2017

@XhmikosR It's a spec change that all implementations should conform to eventually.

@XhmikosR
Copy link
Member

@glebm: feel free to merge, the changes look good to me and the output is the same with node-sass.

Copy link
Member

@mdo mdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoutout gnarly Sass stuff :D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v4 Beta 2
Shipped
Development

Successfully merging this pull request may close these issues.

None yet

6 participants