Skip to content

[css-pseudo-4] Let ::details-content opened details correctly set expanded #13096

Open

Description

@Snugug

When a details element is forced open using :details-content (with content-visibility: visible; and height: auto !important; or similar), today, the details element is exposed as closed to assistive technology. It'd be great if it'd properly report that it's expanded when forced opened, reducing the need for writing and running JavaScript to make this very powerful UI pattern accessible.

Activity

  1. fantasai commented on Aug 11, 2026

    @fantasai
    Collaborator

    Can you explain why you're forcing it open when it's DOM state is closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions