Skip to content

[selectors-5][editorial] Add formal definition and production rule of :local-link()#13585

Open
cdoublev wants to merge 1 commit intow3c:mainfrom
cdoublev:patch-9
Open

[selectors-5][editorial] Add formal definition and production rule of :local-link()#13585
cdoublev wants to merge 1 commit intow3c:mainfrom
cdoublev:patch-9

Conversation

@cdoublev
Copy link
Copy Markdown
Collaborator

@cdoublev cdoublev commented Mar 3, 2026

This PR wraps the first occurrence of :local-link() in <dfn> and adds a production rule, following :heading/:heading() as an example.

:local-link has an associated <dfn> but :local-link() does not. So @webref/css includes the first, not the second.

I am aware that there are discussions about renaming them, but this "in-between" state is confusing.

Copy link
Copy Markdown
Collaborator

@fantasai fantasai left a comment

Choose a reason for hiding this comment

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

I think I would keep the sentence as it was previously (because that flows nicely and quickly gives the conceptual definition up front), and then just use <<integer>> in the definition.

@cdoublev
Copy link
Copy Markdown
Collaborator Author

I have no problem restoring the initial sentence flow but note that :heading() takes <level>, which is defined as a <number-token>, which makes numeric substitutions (math functions and tree-counting functions) invalid.

Do you intentionally want to accept <integer> and these functions in :local-link()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants