Repository navigation
fix(rules): a11y style rules that only show an element no longer make it unconfirmed #940 - #964
Conversation
|
Review of #964 (show-only uncertain rules no longer make elements unconfirmed). I read the diff and the surrounding The logic looks sound. A show-only rule only counts when nothing else outranks it, it is not paired with an animation, and its value is not
Nothing blocking. |
… it unconfirmed #940 Signed-off-by: Nik Cubrilovic <[email protected]>
25248c2 to
0145228
Compare
|
Reviewed the diff. I found no correctness problems.
|
What
An undecidable
<style>rule whose readable declarations can only show an element (displayother thannone,visibility: visible) no longer makes every element it could reach unconfirmed. Such a rule matters only where something else hides the element (hidden, a closed dialog, a popover, a decideddisplay: none, an inheritedvisibility: hidden), and there the control stays unconfirmed, never shown or failed. Rules that could hide, or that also set an animation, are unchanged.display: contents,inheritandunsetare not treated as show-only (Chromium hides an<input>withcontents).Why
WordPress core's
.wp-block-image>aand.wp-lightbox-container buttonkept a page's links and buttons unconfirmed (github.blog homepage).Tests
New
page-styles-show-only-940.test.tsand 12 Chromium-rendered rows instatic-hidden-chromium.json. Against the old source, 4 of the new tests fail. Existing static-hidden, button-name, a11y name, aria-hidden-focus and #951 tests pass. A 20-page offline github.blog audit no longer hasbutton-name,aria-labelsoraria-command-nameunconfirmed rows.Closes #940
skills: no change