Skip to content

Set selector syntax to selector name when possible #1848

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented May 29, 2025

The syntax of selectors is often not formally defined in specs. For selectors that are function-like such as :nth-child(), we'll have to see how specs can be updated. For selectors are are keyword-like such as :visited, updating the specs seems more confusing than anything else though: the syntax of the selector goes without saying, it is simply the selector's name.

This update makes Reffy set the selector's syntax to be the selector's name when the selector is keyword-like.

The syntax of selectors is often not formally defined in specs. For selectors
that are function-like such as `:nth-child()`, we'll have to see how specs can
be updated. For selectors are are keyword-like such as `:visited`, updating the
specs seems more confusing than anything else though: the syntax of the
selector goes without saying, it is simply the selector's name.

This update makes Reffy set the selector's syntax to be the selector's name
when the selector is keyword-like.
@tidoust tidoust requested a review from dontcallmedom May 29, 2025 09:44
@tidoust tidoust merged commit dd68bd1 into main Jun 2, 2025
1 check passed
@tidoust tidoust deleted the css-selectors-value branch June 2, 2025 10:14
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.

2 participants