-
-
Notifications
You must be signed in to change notification settings - Fork 1
.a + .b {}
and .a > .b
don't work
#25
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
Comments
Hi, I have switched CSS-parser to crass in my project, so I'm not really affected by this anymore. Feel free to close it. |
Hi again! I was able to solve some of my CSS-parsing issues by monkeypatching crass, although it didn't support many modern CSS features. I found https://github.com/parcel-bundler/lightningcss which I'm now using via https://github.com/mayu-live/css. It wasn't very difficult to integrate, although it's not generic at all, I only did the bare minimum to get what I needed. Lightning CSS has bindings for NodeJS that look pretty sweet. I don't know how much work it would be to replace the parser in this library with LightningCSS, but maybe if someone ever finds the time, energy and motivation, it would be really cool, because the other parsers are pretty awesome. Just an idea.. for the future maybe. :) |
I think you should open this issue since |
- avoid clobbering the combinator method with a local variable - return a recursive tree of complex selectors Partial fix for ruby-syntax-tree#25
FWIW see my proposed fix at #58 |
- avoid clobbering the combinator method with a local variable - return a recursive tree of complex selectors Partial fix for ruby-syntax-tree#25
Hi, I'm unable to parse
>
and+
in selectors. They seem to get lost...I haven't attempted to fix this myself, I might do it tomorrow.
Any suggestions on where to start would be appreciated, I'm not at all familiar with the code.
Example:
Output:
I noticed that
@media
doesn't seem to be parsed correctly either.There should probably be a
style-rule
instead of asimple-block
.Output:
Similar issues with
@property
:Output:
Just noticed attribute selectors also get lost..
Input:
Output:
The text was updated successfully, but these errors were encountered: