Skip to content

[css-mixins] <combinator> is already defined in Selectors #10557

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

Closed
cdoublev opened this issue Jul 12, 2024 · 2 comments
Closed

[css-mixins] <combinator> is already defined in Selectors #10557

cdoublev opened this issue Jul 12, 2024 · 2 comments

Comments

@cdoublev
Copy link
Collaborator

There is syntax and selector <combinator>s, which are different sets:

It would be nice to clarify whether/how productions should be able to expand to a different value definition (syntax) depending on context. As far as I know, <bool-test> is the only other production whose value definition is context-sensitive, but it does not explicitly expand to a value definition (with <bool-test> =).

@cdoublev
Copy link
Collaborator Author

cdoublev commented Jul 15, 2024

I hope it is fine not top open a separate issue, but the same problem applies to <type()>:

If production rules should have context-insensitive value definitions, a solution could be to use an inline type() definition (like in CSS Images): <css-type> = <syntax-component> | type( <syntax> ).

Edit: never mind, type() is defined as a function in CSS Images, not as a type.

@tabatkins
Copy link
Member

Yup, I went ahead and deduped the names.

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

No branches or pull requests

2 participants