Skip to content

document ::details-content pseudo-element and stylability of <details> element #559

Closed

Description

@dbaron

Proposal

whatwg/html#10265 is specifying changes to HTML that make it easier to style the <details> element. These changes include defining how HTML supports the ::details-content pseudo-element which is defined in CSS. In addition to the pseudo-element, probably the relevant thing that should be documented is the internal structure of the <details> element which makes using the pseudo-element useful and interoperable across layout modes.

Browser support

Not yet available in any stable browsers, though I'm working on implementing it in Chrome.

Tasks

  • ?

Dependencies

none known

Additional information

No response

Are you willing to support this work?

No response

Activity

  1. added
    needs triage
    proposal
    on Jun 17, 2024
  2. bsmth commented on May 6, 2025

    @bsmth
    Member
  3. bsmth commented on Jul 18, 2025

    @bsmth
    Member

    I'm going to close this as done now. If you think that's a mistake or there's still content missing on the page, feel free to let us know here. Thank you :)

  4. removed
    needs triage
    on Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions