Skip to content

[selectors] :heading() selector and the accessibility tree #12412

Open
@extra808

Description

@extra808

@keithamus

#10296

I want to stress that I am of the opinion that aria-level or role=heading should not impact :heading(); they are readily selectable today and I don't think aria should have that dramatic an impact on other selectors.

The intent of headingoffset is to make it easier for content with heading elements to appear on different pages in different contexts where the appropriate heading level is different; specifically, the heading level as it is presented in the accessibility tree.

The intent of a heading() is to ease adjusting the styling of headings so that its consistent not with the elements used but their heading level in the accessibility tree.

If the intent is to help accessibility tree heading levels and the DOM elements they're based on correspond, it should include all the heading levels in that tree, regardless of how they came to be there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions