Repository navigation
fix(rules): a no-js fallback on a page with unread styles is unconfirmed, not a failure #989 - #990
Merged
Merged
Conversation
…med, not a failure #989 Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review of #990 (no-js fallback → unconfirmed). The change is small and consistent. I read the diff and the test file but did not run the tests.
No correctness or security problems found. The docs and CHANGELOG changes read fine. |
This was referenced Oct 21, 2026
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.
What
On a page whose stylesheets were not all read (an external stylesheet or
@import), a control that carries theno-jsclass, itself or on an ancestor other than<html>, is no longer decided as shown. The a11y naming rules andaria-hidden-focusreport it as<check>-unconfirmed, with the item reason "it or an ancestor carries a no-js class, and a stylesheet squirrel did not read may hide it when JavaScript runs". A theme hides that fallback with a rule such as.js .no-js { display: none }in the stylesheet we never read.Unchanged: pages whose styles were all read, controls with no marker, other tokens (
no-js-hidden,NO-JSin standards mode),<html class="no-js">alone (the root is a script-managed state, not a fallback marker), a stray second<html>/<body>class, and the readable.js .no-jshide (stays unconfirmed with the generic reason). The marker vocabulary isno-jsonly; no other state class is covered (follow-up if a report shows one).Tests
New
no-js-fallback-989.test.ts: the issue's cases A (external sheet + show-only rule), B (external sheet alone), C (readable hide), D (<html class="no-js">fetch) foraria-input-field-nameandform-labels, a non-root wrapper, complete styles, non-markers, plusbutton-nameandaria-hidden-focus. 10 of the 18 first-round tests fail with the branch disabled. A Chromium row is not possible here (the behaviour depends on an unread sheet plus script state). Codex pass found two edge cases (case-sensitive class, stray second html/body), fixed with tests. Docs: the a11y rule pages gain a paragraph on the script-state reason and thesolutiontext mentions it;tangly check --strictpasses.Closes #989
skills: no change