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

forward slash (/) in css selectors not working #1552

Closed
vsxed opened this issue Sep 16, 2015 · 4 comments
Closed

forward slash (/) in css selectors not working #1552

vsxed opened this issue Sep 16, 2015 · 4 comments

Comments

@vsxed
Copy link

vsxed commented Sep 16, 2015

Hey there,

there's an issue regarding simple forward slashes in class names. libsass will return an error while compiling, ruby-sass compiles it successfully.

Example:

Libsass: .test-1/2 {...} -> "invalid selector after '.test-1'"
ruby-sass: .test-1/2 {...} -> .test-1/2 {...}

thanks in advance

@xzyfer
Copy link
Contributor

xzyfer commented Sep 21, 2015

Thanks for the report @vsxed. In the future please provide copy-pastable test code eg. #1392

@xzyfer
Copy link
Contributor

xzyfer commented Sep 21, 2015

@vsxed can you please provide the version of Sass you're using

sass -v

Using Sass 3.4.14 I get following error

Error: Invalid CSS after ".test-1/": expected identifier, was "2"

@xzyfer
Copy link
Contributor

xzyfer commented Sep 21, 2015

I've confirmed this does not work with latest Ruby Sass.

@patrick-wc
Copy link

This works:

.width-1\/3

is recognised as class="width-1/3"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants