Skip to content
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

Regroup the page types for CSS selectors #27526

Closed
yarusome opened this issue Jun 24, 2023 · 3 comments
Closed

Regroup the page types for CSS selectors #27526

yarusome opened this issue Jun 24, 2023 · 3 comments
Labels
Content:CSS Cascading Style Sheets docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@yarusome
Copy link
Contributor

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/::cue

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

CSS selector pages have various page types such as "css-combinators" (e.g. Adjacent sibling combinator) and "css-pseudo-element" (e.g. ::cue), but this categorization seems both redundent and insufficient to some extent.

Redundency: The pages under Expressions and operators for JavaScript are functionally similar to CSS selectors pages, but those pages don't get to (nor need to) be further grouped like "assignment operators" and "logical operators".

Insufficiency: Current page types don't differentiate ::cue and ::cue() (this pair should also have separate pages like the next pair do), nor :host and :host().

What did you expect to see?

Regroup the page types for CSS selectors as:

  • css-selector
  • css-pseudo-class
  • css-pseudo-class-function
  • css-pseudo-element
  • css-pseudo-element-function

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

@yarusome yarusome added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jun 24, 2023
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs Content:JS JavaScript docs labels Jun 24, 2023
@Josh-Cena Josh-Cena removed the Content:JS JavaScript docs label Jun 24, 2023
@Josh-Cena
Copy link
Member

Josh-Cena commented Jun 24, 2023

Related: #27238

For my education, why is a combinator a selector? Or are you saying that class selectors, etc. must be combined with combinators to form a complex selector, so they are eventually the same thing?

@yarusome
Copy link
Contributor Author

@Josh-Cena I was mainly thinking about the use of page types for macros since macros treat combinators and selectors alike.

You're right about combinators being different from selectors, but there's an unfortunate example from the spec itself that intermixes these two concepts.

@yarusome
Copy link
Contributor Author

Now I think page-title isn't thr right place to embed such info only needed for macros. A much better solution is the smart macro refactoring raised in discussions/350.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:CSS Cascading Style Sheets docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

2 participants