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

servo: Add support for parsing :is(), :has(), :where(), and nesting selectors #80

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mrobinson
Copy link
Member

Stylo supports these and they just need to be turned on.

Signed-off-by: Martin Robinson [email protected]

…ting selectors

Stylo supports these and they just need to be turned on.

Signed-off-by: Martin Robinson <[email protected]>
Copy link
Contributor

@nicoburns nicoburns left a comment

Choose a reason for hiding this comment

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

Looks good. We've done this in Blitz and it seems to work. My one reservation would be that I believe that "nth-child" and "has" require extra invalidation logic that is not handled by Stylo and needs to be handled externally.

(I am keen to document how that works, probably as an example in the Stylo repo, but I haven't worked it out myself yet)

@Loirooriol
Copy link
Contributor

Yeah have you confirmed that :has() really works? Because I have strong doubts.

@mrobinson
Copy link
Member Author

Yeah have you confirmed that :has() really works? Because I have strong doubts.

It's functional, but there's still work to do with invalidation, as @nicoburns mentioned above.

@mrobinson mrobinson marked this pull request as draft September 25, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants