Skip to content

<details>/<summary> rendering #871

@nt1m

Description

@nt1m

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions