Skip to content

Conversation

@fresh3nough
Copy link

The :has-text() selector and other procedural operators were not working because the css-validation feature was not enabled by default. Without this feature, all selectors are treated as plain CSS instead of being properly parsed to extract procedural operators.

This fix enables css-validation as a default feature, allowing :has-text() and other procedural selectors to work correctly.

Fixes #537

The :has-text() selector and other procedural operators were not
working because the css-validation feature was not enabled by default.
Without this feature, all selectors are treated as plain CSS instead
of being properly parsed to extract procedural operators.

This fix enables css-validation as a default feature, allowing
:has-text() and other procedural selectors to work correctly.

Fixes brave#537
@fresh3nough fresh3nough requested a review from a team as a code owner January 18, 2026 15:41
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.

has-text selector does not work

1 participant