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

<details>/<summary> rendering #871

Open
nt1m opened this issue Oct 9, 2024 · 1 comment
Open

<details>/<summary> rendering #871

nt1m opened this issue Oct 9, 2024 · 1 comment
Labels
focus-area-proposal Focus Area Proposal

Comments

@nt1m
Copy link
Member

nt1m commented Oct 9, 2024

Description

The WebKit implementation of those elements is completely out of date, and causes a lot of pain for web developers:

  • ::marker can't be used, WebKit implements ::-webkit-details-marker instead(bug 157323)
  • list-style and display does not affect the details marker (bug 264381)
  • element.checkVisibility() does not work properly on elements in the default slot (bug 264733)
  • summary::before does not appear in the correct order (bug 61426)
  • details::before/after does not appear in the correct order (bug 61766)

Also add support for ::details-content

Specification

https://html.spec.whatwg.org/#the-details-and-summary-elements

Additional Signals

Standards Positions

WebKit: WebKit/standards-positions#351
Gecko: mozilla/standards-positions#1027


Site breakage and workaround

Browser Bugs

Likely Compatibility Impact

See: https://bugs.webkit.org/showdependencytree.cgi?id=252223&hide_resolved=1


Developer surveys

Other Developer Sentiment

There were some mentions in State of HTML/CSS

@nt1m nt1m added the focus-area-proposal Focus Area Proposal label Oct 9, 2024
@yisibl
Copy link

yisibl commented Oct 10, 2024

::details-content has shipped in Chrome 131 and introduces a new concept: part-like pseudo-elements.

This means that selectors such as the following are valid:

  • ::details-content::before
  • ::details-content::after
  • ::details-content::first-line
  • ::details-content::first-letter
  • ::details-content::selection
  • ::details-content:hover
  • and more…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
Status: No status
Development

No branches or pull requests

2 participants