Skip to content

Selectors 4? #272

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

Closed
Boscop opened this issue Apr 21, 2020 · 4 comments
Closed

Selectors 4? #272

Boscop opened this issue Apr 21, 2020 · 4 comments

Comments

@Boscop
Copy link

Boscop commented Apr 21, 2020

Would it be possible to add support for selectors level 4?
E.g.
tr:nth-last-child(1 of :not(.table_vert_controls))
https://www.w3.org/TR/selectors-4/#the-nth-last-child-pseudo

@SimonSapin
Copy link
Member

This would belong in the selectors crate https://github.com/servo/servo/tree/master/components/selectors/, which is used in Servo and Firefox. See also https://bugzilla.mozilla.org/show_bug.cgi?id=854148

@Boscop
Copy link
Author

Boscop commented Apr 22, 2020

@SimonSapin But this crate doesn't seem to depend on the selectors crate.
It'd be useful to have support in this crate (also because this crate is used in the scraper crate).

@SimonSapin
Copy link
Member

selectors depends on cssparser, so it can’t also be the other way around. scraper can depend on both of them.

Here is an example:

@SimonSapin
Copy link
Member

Closing in favor of servo/servo#26263.

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

No branches or pull requests

2 participants