Skip to content

Conversation

@jaymarvelz
Copy link

Prerequisites checklist

What is the purpose of this pull request?

This PR updates CSSNodeVisitor so non-root nodes include a parent parameter; for root, only the node is passed.

What changes did you make? (Give an overview)

Updated CSSNodeVisitor so non-root nodes include a parent parameter; for root, only the node is passed.

Related Issues

Is there anything you'd like reviewers to focus on?

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Oct 29, 2025
@eslint-github-bot eslint-github-bot bot added the bug Something isn't working label Oct 29, 2025
"WhiteSpace:exit": (...args) => testVisitor<WhiteSpace>(...args),

// Unknown selectors allowed
"Atrule[name=import]"(node: AtrulePlain, parent: CssNodePlain) {},

Choose a reason for hiding this comment

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

The other changes LGTM, thanks.
This is not an "unknown" selector but rather a combined selector.
Can you please update the comment and also add test cases for unknown selectors (e.g. ForStatement, Unknown, ValueNode) and for additional combined selectors (e.g. "Value, Url)", "*", "Block:first-child")

@lumirlumir lumirlumir moved this from Needs Triage to Implementing in Triage Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Implementing

Development

Successfully merging this pull request may close these issues.

2 participants