Skip to content

Enable css-validation feature by default to fix :has-text() selector#609

Open
fresh3nough wants to merge 1 commit intobrave:masterfrom
fresh3nough:fix/enable-css-validation-by-default
Open

Enable css-validation feature by default to fix :has-text() selector#609
fresh3nough wants to merge 1 commit intobrave:masterfrom
fresh3nough:fix/enable-css-validation-by-default

Conversation

@fresh3nough
Copy link
Copy Markdown

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


Note: This is a re-opening of #588, which was accidentally closed.

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

Signed-off-by: fresh3nough <fresh3nough@users.noreply.github.com>
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