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

Support for :scope and :has selectors #2

Open
kraih opened this issue Dec 15, 2021 · 2 comments
Open

Support for :scope and :has selectors #2

kraih opened this issue Dec 15, 2021 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@kraih
Copy link
Member

kraih commented Dec 15, 2021

These two CSS 4 selectors are supported by Mojo::DOM and still missing in @mojojs/dom.

Pattern Represents
E:scope an E element being a designated reference element
E:has(rs1, rs2, …) an E element, if either of the relative selectors rs1 or rs2, when evaluated with E as the :scope elements, match an element

Scope handling already partially exists in the code, but is not used for anything yet.

@kraih kraih added enhancement New feature or request help wanted Extra attention is needed labels Dec 15, 2021
@kraih
Copy link
Member Author

kraih commented Dec 15, 2021

Commit that added :scope. mojolicious/mojo@bd2602d

@kraih
Copy link
Member Author

kraih commented Dec 15, 2021

Commit that added :has. mojolicious/mojo@5084309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant