Skip to content

a11y: frame-title, object-alt and empty-heading do not use the shared hidden-control reader (#993 follow-up) #1002

Closed

Description

@nc9

Summary

#998 moved seven naming rules onto the shared hidden-control reader (#993). Three rules still read hidden state themselves and were not moved: a11y/frame-title, a11y/object-alt, a11y/empty-heading. They can fail on hidden or no-js elements the shared reader would report as unconfirmed.

Acceptance Criteria

  • frame-title, object-alt and empty-heading read visibility through shared/static-hidden.ts
  • An element hidden by hidden, aria-hidden, display: none or a closed dialog is skipped and counted, not failed
  • A style that may hide an element, or a no-js fallback on a page with an unread stylesheet, gives <check>-unconfirmed with the script-state reason
  • A visible violation still fails, and a fully read page keeps its verdict
  • Tests per rule fail when the change is reverted; rule docs updated; CHANGELOG bullet added
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

    bugrulessize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions