Repository navigation
fix(rules): frame-title, object-alt, empty-heading read hidden state through the shared reader #1002 - #1004
Merged
Conversation
|
Review of #1004: no blocking issues found. The three rules (
|
…through the shared reader #1002 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/1002-remaining-naming-rules
branch
from
October 22, 2026 01:29
66976db to
252af1f
Compare
|
Reviewed the diff for I found no blocking problems. The three rules use the shared helpers the same way as the rules moved in #998, and the new test file covers both the hidden and the unconfirmed paths.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1002
a11y/frame-title,a11y/object-altanda11y/empty-headingnow read visibility throughshared/static-hidden.ts, the same way as the seven rules moved in #998.hidden,aria-hiddenon self or ancestor,display: none, closed dialog) is skipped and counted (details.hiddenWithoutName, pass message says "in the accessibility tree").no-jsfallback on a page with an unread stylesheet gives<check>-unconfirmed, with the script-state label for theno-jscase.Behaviour notes:
empty-headingused the olderisHiddenFromMarkup. Two edge cases now read as unconfirmed rather than decided, because the shared reader only settles plainly written inline styles: a style with a comment (/* x */display:none) and a multi-keyworddisplay(inline flow-root) on ahiddenheading. The two old tests that pinned those were rewritten to expectempty-heading-unconfirmed.hidden="until-found"on a heading still warns (unchanged).Tests:
packages/rules/tests/remaining-naming-rules-hidden-1002.test.ts(11 of 20 fail with the source changes reverted),empty-heading.test.ts,noscript-content.test.ts,heading-hierarchy-empty.test.tspass.tsgo --noEmitin packages/rules clean.tangly check --strictpasses.Docs: rule pages for all three updated, CHANGELOG bullet added. Agent skill: no change needed.
aria-hidden=" TRUE "(spaces or upper case) on a heading used to read hidden (the old code trimmed and lower-cased the value). It now warns: Chromium matchesaria-hiddenASCII-case-insensitively but does not trim.