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

Technical review: Document nested pseudo-elements #38680

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chrisdavidmills
Copy link
Contributor

Description

Chrome has added support for styling nested pseudo-elements, beginning in version 135 with ::after::marker and ::before::marker. See https://chromestatus.com/feature/5199947786616832.

This PR:

  • Adds a section to the main pseudo-elements reference page that explains nested pseudo-elements and provides a place to list all the supported ones.
  • Adds a basic demo to the ::before and ::after pages to show the nested pseudo-elements in action.

Note: Unless I've missed something, there doesn't seem to be a really obvious use case for these two nested pseudos — it seems like they are just part of setting up the system for more useful things to come in the future, like carousel/fragmentation (see https://github.com/flackr/carousel/tree/main/fragmentation)

Motivation

Additional details

Related issues and pull requests

@chrisdavidmills chrisdavidmills requested a review from a team as a code owner March 17, 2025 13:25
@chrisdavidmills chrisdavidmills requested review from dipikabh and removed request for a team March 17, 2025 13:25
@github-actions github-actions bot added the Content:CSS Cascading Style Sheets docs label Mar 17, 2025
@chrisdavidmills chrisdavidmills changed the title Document nested pseudo-elements Technical review: Document nested pseudo-elements Mar 17, 2025
@github-actions github-actions bot added the size/m [PR only] 51-500 LoC changed label Mar 17, 2025
Copy link
Contributor

Preview URLs

Flaws (2)

Note! 1 document with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/CSS/::after
Title: ::after
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Glossary/replaced_elements which is a redirect

URL: /en-US/docs/Web/CSS/::before
Title: ::before
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Glossary/replaced_elements which is a redirect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:CSS Cascading Style Sheets docs size/m [PR only] 51-500 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant