test(web): reduced motion disables all motion
Also turns off the fold height transition, which the universal selector does not reach (::details-content). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
370d381ff4
commit
6bb7681306
3 files changed
+74
No files matched your search
@@ -88,6 +88,8 @@ test("prefers-reduced-motion turns off every animation, transition and view tran
|
||||
expect(block).toMatch(/::view-transition-group\(\*\)/);
|
||||
expect(block).toMatch(/::view-transition-old\(\*\)/);
|
||||
expect(block).toMatch(/::view-transition-new\(\*\)/);
|
||||
// `*` does not reach ::details-content (fold heights), so it has its own rule.
|
||||
expect(block).toMatch(/\*::details-content\s*\{\s*transition:\s*none !important/);
|
||||
});
|
||||
|
||||
test("view transitions never take pointer input and keep the header and sidebar still", () => {
|
||||
|
||||
Reference in new issue
Block a user