Repository navigation
fix(rules): a11y style reader reads vendor-prefixed display values #978 - #979
Merged
Merged
Conversation
Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review of #979 (vendor-prefixed No blocking issues found. I read the diff and traced the
Test coverage is good: the issue's repro table, the reader edge cases, and 9 Chromium-rendered fixture rows. The docs and CHANGELOG are updated. |
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
Vendor-prefixed
displaykeywords (-webkit-box,-webkit-inline-box,-webkit-flex,-webkit-inline-flex,-ms-flexbox,-ms-inline-flexbox,-ms-grid,-ms-inline-grid,-moz-box,-moz-inline-box) are read as shown values. The old flexbox fallback chain no longer makes the whole rule unreadable, so it can be show-only (#940) and an unnamed control under it gets a decided fail.Chromium drops
-ms-*and-moz-*values (checked in headless shell). A block is therefore settled only when a later standarddisplayoverrides such a value (display:-ms-flexbox;display:flex). As the last word, or with!importantahead of a plain one, the block stays unknown.display:nonelast in a chain still hides.var(--x), misspelt prefixed keywords, two-keyword syntax,ruby-basestay unknown.Tests
New
page-styles-vendor-display-978.test.ts(issue repro table throughbutton-nameandaria-command-name, reader cases, controls) and 9 Chromium-rendered rows instatic-hidden-chromium.json. 9 of the new tests fail against the old source. Codex pass foundruby-basevalues (Chromium drops them): removed. Docs:solutiontext of the a11y naming rules and the button-name and aria-hidden-focus pages say prefixed values are read;tangly check --strictpasses.Closes #978
skills: no change