Repository navigation
fix(rules): a library's reduced-motion block covers only the motion it names #2111 - #2165
Merged
Merged
Conversation
nc9
force-pushed
the
boat/reduced-motion-lib-2111
branch
2 times, most recently
from
November 20, 2026 21:42
49f824b to
b1db0fc
Compare
…t names, not the whole page #2111 Signed-off-by: Nik Cubrilovic <[email protected]>
…led #2111 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
…motion #2111 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
boat/reduced-motion-lib-2111
branch
from
November 21, 2026 02:05
b1db0fc to
98af6e1
Compare
…or text #2111 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
…2111 Signed-off-by: Nik Cubrilovic <[email protected]>
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 #2111.
a11y/reduced-motion no longer treats any
@media (prefers-reduced-motion)rule as handling for the whole page. stylesheetMotionOf now records the selectors inside reduce blocks that set animation/transition/scroll-behavior (reducedMotionSelectors) and whether the block is a global reset (*,html,body,:root, or a no-preference block) (reducedMotionGlobal). Only a global reset, a media-gated sheet or a matchMedia script handles the whole page; otherwise a CSS motion selector is cleared only when a reduce block names the same selector. rule-cache key includes the new fields.Acceptance criteria:
Gates: rules suite 12510 pass 0 fail; audit-engine suite 2365 pass 0 fail (one unidentified failure on the first full run, green on rerun; nothing in it touches this rule beyond the cache key); typecheck rules and audit-engine clean. rules has no lint/format scripts.
Docs: no user-facing docs change. Agent skill: no change needed.