@uselazuli/cli 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +98 -0
- package/LICENSE +21 -0
- package/README.md +202 -2
- package/agents/lazuli-design-reviewer.md +30 -0
- package/agents/lazuli-first-look.md +22 -0
- package/agents/lazuli-task-tester.md +25 -0
- package/bin/lazuli.mjs +699 -0
- package/package.json +11 -4
- package/rules/accessibility/HYPOTHESES.md +8 -0
- package/rules/accessibility/_area.yaml +7 -0
- package/rules/accessibility/operable.yaml +100 -0
- package/rules/accessibility/perceivable.yaml +153 -0
- package/rules/accessibility/robust.yaml +24 -0
- package/rules/accessibility/understandable.yaml +72 -0
- package/rules/color/HYPOTHESES.md +27 -0
- package/rules/color/_area.yaml +10 -0
- package/rules/color/adapt.yaml +183 -0
- package/rules/color/create.yaml +259 -0
- package/rules/color/review.yaml +215 -0
- package/rules/color/signal.yaml +196 -0
- package/rules/content/HYPOTHESES.md +18 -0
- package/rules/content/_area.yaml +8 -0
- package/rules/content/review.yaml +347 -0
- package/rules/content/voice.yaml +144 -0
- package/rules/content/writing.yaml +202 -0
- package/rules/data/HYPOTHESES.md +11 -0
- package/rules/data/_area.yaml +7 -0
- package/rules/data/charts.yaml +189 -0
- package/rules/data/dashboards.yaml +141 -0
- package/rules/data/review.yaml +159 -0
- package/rules/graphic/HYPOTHESES.md +17 -0
- package/rules/graphic/_area.yaml +8 -0
- package/rules/graphic/identity.yaml +141 -0
- package/rules/graphic/pieces.yaml +164 -0
- package/rules/graphic/review.yaml +242 -0
- package/rules/graphic/symbol.yaml +141 -0
- package/rules/motion/HYPOTHESES.md +19 -0
- package/rules/motion/_area.yaml +7 -0
- package/rules/motion/micro.yaml +143 -0
- package/rules/motion/review.yaml +347 -0
- package/rules/motion/transitions.yaml +169 -0
- package/rules/typography/HYPOTHESES.md +12 -0
- package/rules/typography/_area.yaml +8 -0
- package/rules/typography/adapt.yaml +45 -0
- package/rules/typography/create.yaml +126 -0
- package/rules/typography/review.yaml +127 -0
- package/rules/ui/HYPOTHESES.md +23 -0
- package/rules/ui/_area.yaml +9 -0
- package/rules/ui/compose.yaml +219 -0
- package/rules/ui/grid.yaml +75 -0
- package/rules/ui/review.yaml +399 -0
- package/rules/ui/states.yaml +257 -0
- package/rules/ux/HYPOTHESES.md +13 -0
- package/rules/ux/_area.yaml +8 -0
- package/rules/ux/flows.yaml +164 -0
- package/rules/ux/forms.yaml +142 -0
- package/rules/ux/review.yaml +186 -0
- package/skills/lazuli/SKILL.md +180 -0
- package/skills/lazuli/procedures/create.md +29 -0
- package/skills/lazuli/procedures/explain-decisions.md +22 -0
- package/skills/lazuli/procedures/improve.md +30 -0
- package/skills/lazuli/procedures/remember-this.md +41 -0
- package/skills/lazuli/procedures/review-design.md +35 -0
- package/skills/lazuli/procedures/show-options.md +32 -0
- package/skills/lazuli-accessibility-check/SKILL.md +68 -0
- package/skills/lazuli-color-context-and-culture/SKILL.md +53 -0
- package/skills/lazuli-color-context-and-culture/references/sectors.md +26 -0
- package/skills/lazuli-color-palette-by-intent/SKILL.md +54 -0
- package/skills/lazuli-color-palette-by-intent/references/intent-chords.md +51 -0
- package/skills/lazuli-color-screen-review/SKILL.md +51 -0
- package/skills/lazuli-color-states-and-signals/SKILL.md +53 -0
- package/skills/lazuli-content-interface-writing/SKILL.md +53 -0
- package/skills/lazuli-content-voice/SKILL.md +39 -0
- package/skills/lazuli-data-charts-and-dashboards/SKILL.md +59 -0
- package/skills/lazuli-graphic-derived-pieces/SKILL.md +40 -0
- package/skills/lazuli-graphic-derived-pieces/references/piece-template.html +24 -0
- package/skills/lazuli-graphic-identity/SKILL.md +43 -0
- package/skills/lazuli-motion-micro-and-transitions/SKILL.md +49 -0
- package/skills/lazuli-typography-choose-and-pair/SKILL.md +50 -0
- package/skills/lazuli-typography-screen-review/SKILL.md +51 -0
- package/skills/lazuli-ui-composition/SKILL.md +42 -0
- package/skills/lazuli-ui-composition/references/option-template.html +34 -0
- package/skills/lazuli-ui-layout-review/SKILL.md +47 -0
- package/skills/lazuli-ui-states-and-system/SKILL.md +54 -0
- package/skills/lazuli-ux-flows-and-forms/SKILL.md +51 -0
- package/skills/lazuli-ux-task-test/SKILL.md +44 -0
- package/src/browser.mjs +161 -0
- package/src/commands/capture.mjs +313 -0
- package/src/commands/catalog.mjs +37 -0
- package/src/commands/check-design.mjs +428 -0
- package/src/commands/check-goals.mjs +57 -0
- package/src/commands/compare-designs.mjs +97 -0
- package/src/commands/draft-memo.mjs +161 -0
- package/src/commands/hooks.mjs +343 -0
- package/src/commands/install-hooks.mjs +120 -0
- package/src/commands/install.mjs +132 -0
- package/src/commands/list-rules.mjs +49 -0
- package/src/commands/map-page.mjs +594 -0
- package/src/commands/record-answers.mjs +79 -0
- package/src/commands/record-log.mjs +296 -0
- package/src/commands/record-task.mjs +250 -0
- package/src/commands/render-options.mjs +164 -0
- package/src/commands/start-project.mjs +32 -0
- package/src/measure/a11y.mjs +383 -0
- package/src/measure/asset.mjs +206 -0
- package/src/measure/at-rest.mjs +49 -0
- package/src/measure/cases.mjs +549 -0
- package/src/measure/chart-read.mjs +401 -0
- package/src/measure/chart.mjs +264 -0
- package/src/measure/coherence.mjs +145 -0
- package/src/measure/color.mjs +79 -0
- package/src/measure/content.mjs +82 -0
- package/src/measure/cvd.mjs +24 -0
- package/src/measure/extreme.mjs +241 -0
- package/src/measure/forms.mjs +150 -0
- package/src/measure/in-page/a11y.js +489 -0
- package/src/measure/in-page/color.js +346 -0
- package/src/measure/in-page/composition.js +1496 -0
- package/src/measure/in-page/contrast.js +15 -0
- package/src/measure/in-page/cvd.js +173 -0
- package/src/measure/in-page/extreme.js +355 -0
- package/src/measure/in-page/frames.js +781 -0
- package/src/measure/in-page/look.js +28 -0
- package/src/measure/in-page/motion-probe.js +169 -0
- package/src/measure/in-page/style.js +107 -0
- package/src/measure/in-page/svg-strokes.js +112 -0
- package/src/measure/in-page/svg-uses.js +50 -0
- package/src/measure/in-page/symbol.js +123 -0
- package/src/measure/in-page/type.js +266 -0
- package/src/measure/in-page/weight.js +207 -0
- package/src/measure/layout.mjs +91 -0
- package/src/measure/motion.mjs +508 -0
- package/src/measure/piece.mjs +195 -0
- package/src/measure/registry.mjs +252 -0
- package/src/measure/rhythm.mjs +81 -0
- package/src/measure/signature.mjs +65 -0
- package/src/measure/states.mjs +240 -0
- package/src/measure/style.mjs +13 -0
- package/src/measure/symbol.mjs +268 -0
- package/src/measure/terms.mjs +153 -0
- package/src/measure/tiles.mjs +20 -0
- package/src/measure/timeline.mjs +621 -0
- package/src/measure/type.mjs +167 -0
- package/src/measure/weight.mjs +18 -0
- package/src/private-strings.mjs +81 -0
- package/src/project/blind.mjs +70 -0
- package/src/project/edits.mjs +154 -0
- package/src/project/gate.mjs +159 -0
- package/src/project/lazuli-md.mjs +497 -0
- package/src/project/log.mjs +329 -0
- package/src/project/match.mjs +112 -0
- package/src/project/records.mjs +380 -0
- package/src/project/tasks.mjs +153 -0
- package/src/report/evaluate.mjs +27 -0
- package/src/report/evaluators/a11y.mjs +206 -0
- package/src/report/evaluators/chart.mjs +151 -0
- package/src/report/evaluators/coherence.mjs +103 -0
- package/src/report/evaluators/color.mjs +86 -0
- package/src/report/evaluators/content.mjs +112 -0
- package/src/report/evaluators/extreme.mjs +53 -0
- package/src/report/evaluators/forms.mjs +116 -0
- package/src/report/evaluators/layout.mjs +94 -0
- package/src/report/evaluators/motion.mjs +273 -0
- package/src/report/evaluators/piece.mjs +69 -0
- package/src/report/evaluators/rhythm.mjs +99 -0
- package/src/report/evaluators/states.mjs +39 -0
- package/src/report/evaluators/style.mjs +35 -0
- package/src/report/evaluators/symbol.mjs +110 -0
- package/src/report/evaluators/terms.mjs +49 -0
- package/src/report/evaluators/type.mjs +163 -0
- package/src/report/evaluators/weight.mjs +51 -0
- package/src/report/evidence.mjs +4 -0
- package/src/report/finding.mjs +11 -0
- package/src/report/format.mjs +215 -0
- package/src/rules/hypotheses.mjs +28 -0
- package/src/rules/load.mjs +256 -0
- package/src/rules/public-text.mjs +56 -0
- package/src/rules/schema.mjs +212 -0
- package/templates/LAZULI.md +86 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# Microinteractions. The small motion that answers a hover, a press, a focus or a result. These rules are for
|
|
2
|
+
# the moment the motion is made. The reviewer judges them from the code and the filmstrip; check-design --area
|
|
3
|
+
# motion records the timeline, and the review rules (review.yaml) read it.
|
|
4
|
+
|
|
5
|
+
- id: MI1
|
|
6
|
+
name: Every microinteraction answers something the person did
|
|
7
|
+
area: motion
|
|
8
|
+
moment: create
|
|
9
|
+
skill: lazuli-motion-micro-and-transitions
|
|
10
|
+
rule: >-
|
|
11
|
+
Give motion to a control only as an answer to something the person did or to its result: a hover, a press, a focus, a value saved, an item added. Before animating, name the action it answers in one line. Motion that answers nothing (a button that wobbles on its own, an icon that spins at rest) is not added.
|
|
12
|
+
why: >-
|
|
13
|
+
Motion draws the eye. When it answers an action, it tells the person the interface heard them; when it answers nothing, it pulls attention away from the task and teaches people to ignore motion, including the motion that matters. (our claim)
|
|
14
|
+
origin: hypothesis
|
|
15
|
+
source: >-
|
|
16
|
+
Our claim: no page opened on 2026-11-26 states this as a rule. It comes from the kit author's internal product plan (motion row: microinteractions, award level "motion that explains the interface"). Related reading, not the source of the rule: W3C, Understanding SC 2.2.2 Pause, Stop, Hide, https://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide.html (section "Intent", opened 2026-11-26) says moving content can be a severe distraction for some people.
|
|
17
|
+
when_to_break: >-
|
|
18
|
+
A brand moment that is meant to be looked at, not used (a mascot in an empty state, a logo reveal), may move without an action, declared with break-a-rule first, and still stops on its own or has a pause control.
|
|
19
|
+
break_effect: >-
|
|
20
|
+
The moment carries personality where there is nothing to do, at the cost of attention wherever it sits next to a task.
|
|
21
|
+
test: >-
|
|
22
|
+
The reviewer lists every animated control in the code and names the action each answers; an animation with no action named is a finding.
|
|
23
|
+
example: >-
|
|
24
|
+
A save button whose check mark draws in after the server answers, and nothing moves before the press.
|
|
25
|
+
counterexample: >-
|
|
26
|
+
A call to action that pulses forever to attract clicks.
|
|
27
|
+
|
|
28
|
+
- id: MI2
|
|
29
|
+
name: Short enough that the next action never waits
|
|
30
|
+
area: motion
|
|
31
|
+
moment: create
|
|
32
|
+
skill: lazuli-motion-micro-and-transitions
|
|
33
|
+
rule: >-
|
|
34
|
+
A microinteraction is short enough that the person's next action never waits on it: the control can be used again, and the next control can be reached, while or right after it plays. Keep feedback on a small control the shortest of the motion vocabulary (MI5) and never make a click wait for an animation to finish. The cutoff the kit uses is the hypothesis H1 in `HYPOTHESES.md` of this area.
|
|
35
|
+
why: >-
|
|
36
|
+
Feedback that outlasts the action makes a fast person wait and reads as a slow interface, even when the work behind it is done. (our claim)
|
|
37
|
+
origin: hypothesis
|
|
38
|
+
status: hypothesis
|
|
39
|
+
hypothesis: H1
|
|
40
|
+
source: >-
|
|
41
|
+
Our claim: the limit is the round starting value of H1, set before any page was measured. Related reading, not the source of the limit and never a reason to move it: Nielsen Norman Group, Page Laubheimer, Executing UX Animations: Duration and Motion Characteristics, https://www.nngroup.com/articles/animation-duration/ (section "Animation Duration", opened 2026-11-26) gives a range for most UI animations and says small feedback should feel immediate; IBM Carbon Design System, Motion, https://carbondesignsystem.com/elements/motion/overview/ (section "Duration", opened 2026-11-26) names its shortest duration tokens for microinteractions such as a button and a toggle.
|
|
42
|
+
when_to_break: >-
|
|
43
|
+
A microinteraction that reports a slow result (an upload that finishes) may play longer, declared with break-a-rule first, as long as the control stays usable while it plays.
|
|
44
|
+
break_effect: >-
|
|
45
|
+
The result gets a moment of its own, and nothing waits on it because the control is free.
|
|
46
|
+
test: >-
|
|
47
|
+
The reviewer reads the duration and delay of each microinteraction in the code against H1 and tries the next action while it plays; check-design --area motion records the length of each microinteraction (MR1).
|
|
48
|
+
example: >-
|
|
49
|
+
A toggle whose knob slides with the shortest duration token of the vocabulary, and a second tap during the slide is taken at once.
|
|
50
|
+
counterexample: >-
|
|
51
|
+
A like button that runs a long burst animation and ignores taps until it ends.
|
|
52
|
+
|
|
53
|
+
- id: MI3
|
|
54
|
+
name: The state change reads without the motion
|
|
55
|
+
area: motion
|
|
56
|
+
moment: create
|
|
57
|
+
skill: lazuli-motion-micro-and-transitions
|
|
58
|
+
rule: >-
|
|
59
|
+
Motion adds to a visible state; it never is the state. The end state of every microinteraction (pressed, selected, open, saved, error) is visible at rest, designed with `lazuli-ui-states-and-system`, so with reduced motion or with the motion skipped the person loses nothing but the movement.
|
|
60
|
+
why: >-
|
|
61
|
+
A state that exists only while something moves is missed by anyone who looked away, by reduced motion and by a slow device that drops the frames. (our claim)
|
|
62
|
+
origin: hypothesis
|
|
63
|
+
source: >-
|
|
64
|
+
Our claim: no page opened on 2026-11-26 states this as a rule. Related reading, not the source of the rule: W3C, Understanding SC 2.3.3 Animation from Interactions (level AAA, not a norm here), https://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions.html (sections "Intent" and "Key Terms", opened 2026-11-26) says motion animation triggered by interaction can be disabled unless it is essential, and defines essential as what, if removed, would fundamentally change the information or functionality.
|
|
65
|
+
when_to_break: >-
|
|
66
|
+
Never for a state the person must know (an error, a saved value). A purely decorative flourish on top of a state that already reads may be skipped by this rule because it carries no state at all.
|
|
67
|
+
break_effect: >-
|
|
68
|
+
None to buy: a state carried only by motion is a state some people never see.
|
|
69
|
+
test: >-
|
|
70
|
+
The reviewer looks at the screenshot of each end state with motion turned off and names the state from the still image; the reduced motion run of check-design --area motion (MT6) shows what still moves.
|
|
71
|
+
example: >-
|
|
72
|
+
A selected tab that slides its underline and, at rest, keeps the underline and a bolder label.
|
|
73
|
+
counterexample: >-
|
|
74
|
+
A form that shakes on an error and shows no message once the shake ends.
|
|
75
|
+
|
|
76
|
+
- id: MI4
|
|
77
|
+
name: Animate transform and opacity, not layout
|
|
78
|
+
area: motion
|
|
79
|
+
moment: create
|
|
80
|
+
skill: lazuli-motion-micro-and-transitions
|
|
81
|
+
rule: >-
|
|
82
|
+
Move, scale, rotate and fade with `transform` and `opacity`. Do not animate properties that trigger layout or paint (width, height, top, left, margin, padding, font-size) unless the effect cannot be made otherwise, and then say so in the code.
|
|
83
|
+
why: >-
|
|
84
|
+
Transform and opacity can be animated at the composite stage without recomputing layout, while layout properties make the browser lay out and paint again on every frame, which drops frames and pushes other content around.
|
|
85
|
+
origin: source
|
|
86
|
+
source: >-
|
|
87
|
+
web.dev, How to create high-performance CSS animations, https://web.dev/articles/animations-guide (sections "Avoid properties that trigger layout or paint", "Check whether an animation triggers layout" and "Animate at the composite stage", opened 2026-11-26): restrict animations to opacity and transform where possible, avoid any property that triggers layout or paint unless it is absolutely necessary, and an animation that moves an element using something other than transform is likely to be slow. web.dev, Optimize Cumulative Layout Shift, https://web.dev/articles/optimize-cls (section on animations, opened 2026-11-26): changing top and left causes layout shifts, and composited animations using translate do not count toward CLS. The clause "say so in the code" is our claim.
|
|
88
|
+
when_to_break: >-
|
|
89
|
+
An accordion that must push the content below it may animate its height, declared with break-a-rule first, on a small element with nothing heavy below.
|
|
90
|
+
break_effect: >-
|
|
91
|
+
The content below follows the panel smoothly, at the cost of a layout pass on every frame.
|
|
92
|
+
test: >-
|
|
93
|
+
The reviewer reads the animated properties in the CSS and scripts and lists any layout property; check-design --area motion names the layout properties of each recorded animation (MR4).
|
|
94
|
+
example: >-
|
|
95
|
+
A card that lifts on hover with `transform: translateY` and a shadow that fades in through opacity on a pseudo-element.
|
|
96
|
+
counterexample: >-
|
|
97
|
+
A side menu that slides in by animating `left` from a negative value.
|
|
98
|
+
|
|
99
|
+
- id: MI5
|
|
100
|
+
name: One motion vocabulary declared as tokens
|
|
101
|
+
area: motion
|
|
102
|
+
moment: create
|
|
103
|
+
skill: lazuli-motion-micro-and-transitions
|
|
104
|
+
rule: >-
|
|
105
|
+
Declare a few named durations and curves once, as CSS custom properties (for example `--motion-fast`, `--motion-medium`, `--ease-enter`, `--ease-exit`), and use only those names everywhere. A new duration or curve is added to the tokens with a reason, never written inline in one component.
|
|
106
|
+
why: >-
|
|
107
|
+
A small named vocabulary makes the same kind of change move the same way across the product, which is how motion becomes recognizable, and it lets reduced motion and later tuning change one place. (our claim)
|
|
108
|
+
origin: hypothesis
|
|
109
|
+
source: >-
|
|
110
|
+
Our claim: no page opened on 2026-11-26 states this as a rule for every product. Related reading, not the source of the rule: IBM Carbon Design System, Motion, https://carbondesignsystem.com/elements/motion/overview/ (sections "Duration" and "Easing", opened 2026-11-26) ships named duration tokens and named easing curves for productive and expressive motion.
|
|
111
|
+
when_to_break: >-
|
|
112
|
+
A one-off brand piece (a launch animation) may use its own timing, declared with break-a-rule first, and stays out of the components.
|
|
113
|
+
break_effect: >-
|
|
114
|
+
The piece can be choreographed freely, and the product's vocabulary stays clean.
|
|
115
|
+
test: >-
|
|
116
|
+
The reviewer searches the CSS and scripts for durations and curves written inline instead of through the tokens and lists each one.
|
|
117
|
+
example: >-
|
|
118
|
+
`:root` declares four durations and three curves; every transition in the code reads `var(--motion-*)` and `var(--ease-*)`.
|
|
119
|
+
counterexample: >-
|
|
120
|
+
Each component picks its own duration and curve by eye, so no two dropdowns open the same way.
|
|
121
|
+
|
|
122
|
+
- id: MI6
|
|
123
|
+
name: Motion starts from the element touched
|
|
124
|
+
area: motion
|
|
125
|
+
moment: create
|
|
126
|
+
skill: lazuli-motion-micro-and-transitions
|
|
127
|
+
rule: >-
|
|
128
|
+
The motion that answers an action starts at, or grows out of, the element the person touched: a menu unfolds from its button, a ripple spreads from the press point, a detail view grows from the item chosen.
|
|
129
|
+
why: >-
|
|
130
|
+
Motion that starts where the hand or pointer is ties the answer to the action, so the person sees what they caused without searching the screen. (our claim)
|
|
131
|
+
origin: hypothesis
|
|
132
|
+
source: >-
|
|
133
|
+
Our claim: no page opened on 2026-11-26 states this as a rule. It comes from the kit author's internal product plan (award level: motion that explains the interface).
|
|
134
|
+
when_to_break: >-
|
|
135
|
+
A global message (a connection lost banner) that answers no one element may enter from a screen edge, declared with break-a-rule first.
|
|
136
|
+
break_effect: >-
|
|
137
|
+
The message reads as about the whole screen, which is what it is.
|
|
138
|
+
test: >-
|
|
139
|
+
The reviewer watches the filmstrip of each scripted interaction and names where each answer starts; an answer that starts away from the touched element is a finding.
|
|
140
|
+
example: >-
|
|
141
|
+
A dropdown whose list scales from the top edge of its trigger.
|
|
142
|
+
counterexample: >-
|
|
143
|
+
A dropdown whose list fades in at the center of the screen.
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
# Recorded motion checks. check-design records the page's own timeline at the first width of a run (the
|
|
2
|
+
# animation inventory, long frames, layout shifts, frames and gradient clips, and a run with reduced motion
|
|
3
|
+
# asked for) and these rules read it. MR1 to MR11 are hypotheses with their own ids in HYPOTHESES.md and
|
|
4
|
+
# give a hint, never a verdict. MR12 and MR13 are WCAG 2.2 Level A criteria, norms that a declared break
|
|
5
|
+
# never waives. The post-edit hook leaves this area out: run check-design --area motion after motion work.
|
|
6
|
+
|
|
7
|
+
- id: MR1
|
|
8
|
+
name: Microinteractions finish quickly
|
|
9
|
+
area: motion
|
|
10
|
+
moment: review
|
|
11
|
+
skill: lazuli-motion-micro-and-transitions
|
|
12
|
+
rule: >-
|
|
13
|
+
Check that every microinteraction (an animation started by a hover, a focus or a click on the element it answers) ends within the cutoff of H1, delay and every iteration included (MI2).
|
|
14
|
+
why: >-
|
|
15
|
+
Feedback that outlasts the action makes a fast person wait and reads as a slow interface. (our claim)
|
|
16
|
+
origin: hypothesis
|
|
17
|
+
status: hypothesis
|
|
18
|
+
hypothesis: H1
|
|
19
|
+
source: >-
|
|
20
|
+
Our claim: the cutoff is the round starting value of H1, set before any page was measured; the H1 row says how and lists what was observed afterwards, which is not evidence.
|
|
21
|
+
measure: motion.micro-duration
|
|
22
|
+
threshold: { maxMs: 400 }
|
|
23
|
+
when_to_break: >-
|
|
24
|
+
A microinteraction that reports a slow result (an upload that finishes) may play longer, declared with break-a-rule first, as long as the control stays usable while it plays.
|
|
25
|
+
break_effect: >-
|
|
26
|
+
The result gets a moment of its own, and nothing waits on it because the control is free.
|
|
27
|
+
test: >-
|
|
28
|
+
The recorder hovers and focuses the first first-view controls on every page and clicks disclosure controls on a local page only. An animation counts for this rule when it starts within STEP_WINDOW_MS of the step on the element the step acted on, an element inside it or one that holds it; anything else that starts during a step is not judged by any duration (a note counts it). Its length is delay plus duration times iterations, read from the Web Animations API; the reverse transition after the pointer leaves counts once; endless animations are not judged. Hint when one is longer than the cutoff, pass when every one is within it, nothing when no microinteraction was recorded. Motion driven by script (requestAnimationFrame, canvas, video) is not in the API, so its length is not read.
|
|
29
|
+
example: >-
|
|
30
|
+
A button whose hover lift uses the shortest duration token of the vocabulary.
|
|
31
|
+
counterexample: >-
|
|
32
|
+
A card whose hover zoom plays for most of a second before the card can be read.
|
|
33
|
+
|
|
34
|
+
- id: MR2
|
|
35
|
+
name: Transitions and entrances end soon, stagger included
|
|
36
|
+
area: motion
|
|
37
|
+
moment: review
|
|
38
|
+
skill: lazuli-motion-micro-and-transitions
|
|
39
|
+
rule: >-
|
|
40
|
+
Check that every transition and entrance that runs at load or after a scroll, stagger included, ends within the cutoff of H2 (MT4).
|
|
41
|
+
why: >-
|
|
42
|
+
Content that is ready but still on its way in makes the person wait for the motion. (our claim)
|
|
43
|
+
origin: hypothesis
|
|
44
|
+
status: hypothesis
|
|
45
|
+
hypothesis: H2
|
|
46
|
+
source: >-
|
|
47
|
+
Our claim: the cutoff is the round starting value of H2, set before any page was measured; the H2 row says how and lists what was observed afterwards, which is not evidence.
|
|
48
|
+
measure: motion.transition-duration
|
|
49
|
+
threshold: { maxMs: 1000 }
|
|
50
|
+
when_to_break: >-
|
|
51
|
+
A brand opening that is the content may run longer, declared with break-a-rule first, with a way to skip it.
|
|
52
|
+
break_effect: >-
|
|
53
|
+
The opening is watched as intended, and anyone in a hurry skips it.
|
|
54
|
+
test: >-
|
|
55
|
+
Each finite animation that starts in the load window or within STEP_WINDOW_MS of the scripted scroll is measured as delay plus duration times iterations, so the last item of a stagger carries the whole stagger in its delay. Hint when one is longer than the cutoff, pass when every one is within it, nothing when none was recorded. The load window ends early after QUIET_MS with no animation, so an animation that starts later is not read (the report says when the recording ended); a stagger made of script timers is read per animation; script motion is not read.
|
|
56
|
+
example: >-
|
|
57
|
+
A list whose items arrive a short step apart, the last one in place soon after the first.
|
|
58
|
+
counterexample: >-
|
|
59
|
+
A grid of thirty products where each item waits for the previous one.
|
|
60
|
+
|
|
61
|
+
- id: MR3
|
|
62
|
+
name: Finite movement eases
|
|
63
|
+
area: motion
|
|
64
|
+
moment: review
|
|
65
|
+
skill: lazuli-motion-micro-and-transitions
|
|
66
|
+
rule: >-
|
|
67
|
+
Check that no finite animation that moves an element runs at constant speed (MT3).
|
|
68
|
+
why: >-
|
|
69
|
+
Constant speed on a move that starts and stops looks mechanical. (our claim)
|
|
70
|
+
origin: hypothesis
|
|
71
|
+
status: hypothesis
|
|
72
|
+
hypothesis: H3
|
|
73
|
+
source: >-
|
|
74
|
+
Our claim, a hint only (H3): no number is used as a cutoff; the H3 row says what is read.
|
|
75
|
+
measure: motion.easing
|
|
76
|
+
when_to_break: >-
|
|
77
|
+
A mechanical brand may move at constant speed on purpose, declared with break-a-rule first.
|
|
78
|
+
break_effect: >-
|
|
79
|
+
The motion reads as the brand's machine, at the cost of looking stiff wherever it is not expected.
|
|
80
|
+
test: >-
|
|
81
|
+
For each finite animation that changes a move property (transform, translate, scale, rotate, the inset properties, offset-distance), the curve is read from the Web Animations API: the effect's easing, or the keyframes' common easing when the effect is linear. Hint naming each one whose curve is linear or cubic-bezier(0, 0, 1, 1); pass when none is; nothing when no finite move was recorded. The CSS linear() function with stops is not read as constant speed; endless loops are not judged; script motion is not read.
|
|
82
|
+
example: >-
|
|
83
|
+
A toast that enters with the vocabulary's entering curve.
|
|
84
|
+
counterexample: >-
|
|
85
|
+
A modal that slides up at constant speed and stops abruptly.
|
|
86
|
+
|
|
87
|
+
- id: MR4
|
|
88
|
+
name: Animate no layout property
|
|
89
|
+
area: motion
|
|
90
|
+
moment: review
|
|
91
|
+
skill: lazuli-motion-micro-and-transitions
|
|
92
|
+
rule: >-
|
|
93
|
+
Check that no recorded animation changes a property that lays the page out again (MI4).
|
|
94
|
+
why: >-
|
|
95
|
+
Layout properties make the browser lay out and paint again on every frame, while opacity and transform can stay on the compositing stage.
|
|
96
|
+
origin: source
|
|
97
|
+
status: hypothesis
|
|
98
|
+
hypothesis: H4
|
|
99
|
+
source: >-
|
|
100
|
+
web.dev, How to create high-performance CSS animations, https://web.dev/articles/animations-guide (sections "Avoid properties that trigger layout or paint" and "Animate at the composite stage", opened 2026-11-26): avoid any property that triggers layout or paint unless it is absolutely necessary; where possible, restrict animations to opacity and transform. Our claim, beyond the page: that the LAYOUT_PROPS list read here is the set to avoid, and that a finding on a recorded animation is a useful hint (H4); the page names no list and no check.
|
|
101
|
+
measure: motion.properties
|
|
102
|
+
when_to_break: >-
|
|
103
|
+
An accordion that must push the content below it may animate its height, declared with break-a-rule first, on a small element with nothing heavy below.
|
|
104
|
+
break_effect: >-
|
|
105
|
+
The content below follows the panel smoothly, at the cost of a layout pass on every frame.
|
|
106
|
+
test: >-
|
|
107
|
+
Each recorded animation's properties are compared with LAYOUT_PROPS (sizes, insets, margins, paddings, border widths, font-size, line-height, letter-spacing, flex-basis, grid template sizes). Hint naming each animation and its layout properties; pass when none has one; nothing when no animation was recorded. Paint-only properties (color, background, shadow) are not named; script motion is not read.
|
|
108
|
+
example: >-
|
|
109
|
+
A card that lifts on hover with transform and fades its shadow through opacity.
|
|
110
|
+
counterexample: >-
|
|
111
|
+
A side menu that slides in by animating left.
|
|
112
|
+
|
|
113
|
+
- id: MR5
|
|
114
|
+
name: Not every entrance is the same animation
|
|
115
|
+
area: motion
|
|
116
|
+
moment: review
|
|
117
|
+
skill: lazuli-motion-micro-and-transitions
|
|
118
|
+
rule: >-
|
|
119
|
+
Check that the entrances of the page are not all one animation, the default the kit author's internal product plan names: "everything appears with the same fade" (MT2).
|
|
120
|
+
why: >-
|
|
121
|
+
One fade for every element says nothing about what each element is and reads as no decision at all. (our claim)
|
|
122
|
+
origin: hypothesis
|
|
123
|
+
status: hypothesis
|
|
124
|
+
hypothesis: H5
|
|
125
|
+
source: >-
|
|
126
|
+
Our claim: the default line comes from the kit author's internal product plan (award level for motion: default "everything appears with the same fade"); the cutoff is the round starting value of H5, set before any page was measured.
|
|
127
|
+
measure: motion.sameness
|
|
128
|
+
threshold: { minEntrances: 3 }
|
|
129
|
+
when_to_break: >-
|
|
130
|
+
A quiet brand may decide on one restrained entrance for everything, declared with break-a-rule first and logged with record-decision.
|
|
131
|
+
break_effect: >-
|
|
132
|
+
The page stays calm and consistent, at the cost of motion telling the roles apart.
|
|
133
|
+
test: >-
|
|
134
|
+
An entrance is a finite animation at load or after the scroll where opacity rises or a move property returns to rest. Two entrances are the same animation when they change the same properties between the same values over the same duration with the same curve; delay and name do not count, so a stagger of one fade is one animation. With at least minEntrances entrances, hint when all of them are one animation and pass when they differ; with fewer, nothing. Whether they differ by role and carry the brand is judged by the reviewer from the filmstrip (MR11), never by this count.
|
|
135
|
+
example: >-
|
|
136
|
+
A heading that rises, a figure revealed by a mask and list items that arrive from the side.
|
|
137
|
+
counterexample: >-
|
|
138
|
+
Heading, image, buttons and footer all fade in the same way.
|
|
139
|
+
|
|
140
|
+
- id: MR6
|
|
141
|
+
name: No long frames while the page moves
|
|
142
|
+
area: motion
|
|
143
|
+
moment: review
|
|
144
|
+
skill: lazuli-motion-micro-and-transitions
|
|
145
|
+
rule: >-
|
|
146
|
+
Check that no frame takes longer than the cutoff of H6 while the page loads and the scripted steps run.
|
|
147
|
+
why: >-
|
|
148
|
+
A long frame freezes every animation on the page and delays the answer to the person's action. (our claim)
|
|
149
|
+
origin: hypothesis
|
|
150
|
+
status: hypothesis
|
|
151
|
+
hypothesis: H6
|
|
152
|
+
source: >-
|
|
153
|
+
Our claim: the cutoff is the round starting value of H6, set before any page was measured. Chrome for Developers, Long Animation Frames API, https://developer.chrome.com/docs/web-platform/long-animation-frames (sections "Background: the Long Tasks API" and "The Long Animation Frames API", opened 2026-11-26): a long animation frame is a rendering update delayed beyond 50 milliseconds, the same threshold as the Long Tasks API; that page sets the floor of what is reported, not the cutoff.
|
|
154
|
+
measure: motion.long-frames
|
|
155
|
+
threshold: { maxFrameMs: 100 }
|
|
156
|
+
when_to_break: >-
|
|
157
|
+
A heavy first paint that no person can use yet (a loader screen) may hold a long frame, declared with break-a-rule first.
|
|
158
|
+
break_effect: >-
|
|
159
|
+
The page gets its heavy work done in one go, at the cost of a frozen moment.
|
|
160
|
+
test: >-
|
|
161
|
+
Long frames come from a PerformanceObserver of type long-animation-frame (longtask when unsupported, named in the report) in the run that captures no pixels, from load to the end of the steps. They are judged with TIMING_TOLERANCE_MS: hint when a frame is longer than the cutoff plus the tolerance (above 150 ms), nothing and a note when the longest is within the tolerance of the cutoff (from 50 to 150 ms), pass only when no frame over 50 ms was reported; the API reports only frames of 50 ms or more, so a pass means no entry above that floor. A reading depends on this machine and its load.
|
|
162
|
+
example: >-
|
|
163
|
+
A page whose load work is split so no frame blocks the first entrances.
|
|
164
|
+
counterexample: >-
|
|
165
|
+
A hero script that parses a large file in one task while the entrance plays.
|
|
166
|
+
|
|
167
|
+
- id: MR7
|
|
168
|
+
name: Nothing jumps
|
|
169
|
+
area: motion
|
|
170
|
+
moment: review
|
|
171
|
+
skill: lazuli-motion-micro-and-transitions
|
|
172
|
+
rule: >-
|
|
173
|
+
Check that the layout shift score of the recorded window stays at or under the cutoff of H7 (MT5).
|
|
174
|
+
why: >-
|
|
175
|
+
A late element that pushes the page moves what the person was reading or about to press.
|
|
176
|
+
origin: hypothesis
|
|
177
|
+
status: hypothesis
|
|
178
|
+
hypothesis: H7
|
|
179
|
+
source: >-
|
|
180
|
+
Our claim, borrowing a published value: web.dev, Cumulative Layout Shift (CLS), https://web.dev/articles/cls (opened 2026-11-26) says sites should strive for a CLS score of 0.1 or less, at the 75th percentile of page loads, and defines a session window as shifts less than 1 second apart, at most 5 seconds in total, the largest window counting. Applying that value to one recorded window with scripted steps on this machine is our claim (H7).
|
|
181
|
+
measure: motion.layout-shift
|
|
182
|
+
threshold: { maxShift: 0.1 }
|
|
183
|
+
when_to_break: >-
|
|
184
|
+
Content whose size cannot be known may grow below the fold, declared with break-a-rule first, as long as nothing above the person's view moves.
|
|
185
|
+
break_effect: >-
|
|
186
|
+
The content takes the space it needs, and the reader's place stays put.
|
|
187
|
+
test: >-
|
|
188
|
+
Layout shifts come from a PerformanceObserver of type layout-shift; shifts with recent input are left out; the score is the largest session window (SHIFT_GAP_MS, SHIFT_WINDOW_MS). Compared to three decimals, with no tolerance: hint above the cutoff, naming the elements that moved most (hidden or clipped sources left out), pass at or under it. The recorder's hover and scroll steps are not input for the API, so a shift they cause counts.
|
|
189
|
+
example: >-
|
|
190
|
+
A hero image with width and height and a reviews panel with a minimum height.
|
|
191
|
+
counterexample: >-
|
|
192
|
+
A banner inserted at the top after load that pushes the heading down.
|
|
193
|
+
|
|
194
|
+
- id: MR8
|
|
195
|
+
name: The screen settles soon after load
|
|
196
|
+
area: motion
|
|
197
|
+
moment: review
|
|
198
|
+
skill: lazuli-motion-micro-and-transitions
|
|
199
|
+
rule: >-
|
|
200
|
+
Check that the screen stops changing within the cutoff of H8 after load.
|
|
201
|
+
why: >-
|
|
202
|
+
A screen that keeps rearranging after load leaves the person waiting before they can read or act. (our claim)
|
|
203
|
+
origin: hypothesis
|
|
204
|
+
status: hypothesis
|
|
205
|
+
hypothesis: H8
|
|
206
|
+
source: >-
|
|
207
|
+
Our claim: the cutoff is the round starting value of H8, set before any page was measured; the H8 row says how and lists what was observed afterwards, which is not evidence.
|
|
208
|
+
measure: motion.settle
|
|
209
|
+
threshold: { maxSettleMs: 1000 }
|
|
210
|
+
when_to_break: >-
|
|
211
|
+
A brand opening that is the content may hold the screen longer, declared with break-a-rule first, with a way to skip it.
|
|
212
|
+
break_effect: >-
|
|
213
|
+
The opening is watched as intended, at the cost of a later start for anyone who came to read.
|
|
214
|
+
test: >-
|
|
215
|
+
Frames captured at FRAME_SCALE over the load window give the last time any cell of CELL_PX frame px changed by more than PIXEL_NOISE levels. Areas that keep moving (moving content and endless animations) are left out with a note, since MR13 judges them. Judged with TIMING_TOLERANCE_MS: hint when the last change is past the cutoff plus the tolerance (after 1050 ms) or when the screen was still changing within QUIET_MS of the end of the recording, nothing and a note within the tolerance (950 to 1050 ms), pass at or before 950 ms. The capture sends no frame while nothing changes; a change that starts after the window is not read.
|
|
216
|
+
example: >-
|
|
217
|
+
A page whose entrances are done and whose fonts are in place well within a second.
|
|
218
|
+
counterexample: >-
|
|
219
|
+
A page whose sections keep sliding in one after another for seconds after load.
|
|
220
|
+
|
|
221
|
+
- id: MR9
|
|
222
|
+
name: Gradients show no bands
|
|
223
|
+
area: motion
|
|
224
|
+
moment: review
|
|
225
|
+
skill: lazuli-motion-micro-and-transitions
|
|
226
|
+
rule: >-
|
|
227
|
+
Check that no gradient in the first view shows flat bands wider than the cutoff of H9.
|
|
228
|
+
why: >-
|
|
229
|
+
A gradient that breaks into visible steps looks cheap and draws the eye to its edges. (our claim)
|
|
230
|
+
origin: hypothesis
|
|
231
|
+
status: hypothesis
|
|
232
|
+
hypothesis: H9
|
|
233
|
+
source: >-
|
|
234
|
+
Our claim: the cutoff is the round starting value of H9, set before any page was measured; the H9 row says how and lists what was observed afterwards, which is not evidence.
|
|
235
|
+
measure: motion.banding
|
|
236
|
+
threshold: { maxBandPx: 32 }
|
|
237
|
+
when_to_break: >-
|
|
238
|
+
A stepped gradient drawn on purpose (posterized art) may show bands, declared with break-a-rule first.
|
|
239
|
+
break_effect: >-
|
|
240
|
+
The steps read as a graphic choice, at the cost of a smooth surface.
|
|
241
|
+
test: >-
|
|
242
|
+
Each visible gradient (at most MAX_GRADIENTS) is clipped losslessly at rest, at device scale 1, back at the top of the page, and read along its axis: neighbor runs at most BAND_LEVELS levels apart per channel are bands, a larger step is a content edge. Hint when a gradient's widest band is wider than the cutoff, pass otherwise, nothing when no gradient was clipped. The clip shows what this browser painted on this machine; another screen, color profile or browser can band differently.
|
|
243
|
+
example: >-
|
|
244
|
+
A long dark gradient with a little noise, smooth at every width.
|
|
245
|
+
counterexample: >-
|
|
246
|
+
A full-width gradient between two close dark tones that shows wide stripes.
|
|
247
|
+
|
|
248
|
+
- id: MR10
|
|
249
|
+
name: Reduced motion stops what moves
|
|
250
|
+
area: motion
|
|
251
|
+
moment: review
|
|
252
|
+
skill: lazuli-motion-micro-and-transitions
|
|
253
|
+
rule: >-
|
|
254
|
+
Check that, with reduced motion asked for, the animations that moved in the default run no longer move (MT6).
|
|
255
|
+
why: >-
|
|
256
|
+
The setting tells the page the person wants motion removed, reduced or replaced; moving parts that keep moving ignore it.
|
|
257
|
+
origin: hypothesis
|
|
258
|
+
status: hypothesis
|
|
259
|
+
hypothesis: H10
|
|
260
|
+
source: >-
|
|
261
|
+
Our claim, borrowing a criterion that is not a norm here: W3C, Understanding SC 2.3.3 Animation from Interactions, https://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions.html (Level AAA, sections "Intent" and "Techniques", opened 2026-11-26) says some users experience distraction or nausea from animated content and lists C39, using the CSS prefers-reduced-motion query to prevent motion. 2.3.3 is AAA, so this rule is a hypothesis (H10), never a norm, and it applies to every moving animation, not only those triggered by interaction (our claim).
|
|
262
|
+
measure: motion.reduced
|
|
263
|
+
when_to_break: >-
|
|
264
|
+
Motion that is essential to the information may keep a reduced version that still moves, declared with break-a-rule first.
|
|
265
|
+
break_effect: >-
|
|
266
|
+
The information that only motion carries is kept, with the least movement that still shows it.
|
|
267
|
+
test: >-
|
|
268
|
+
Only when something moved in the default run, the page is recorded again with prefers-reduced-motion set to reduce and its inventory compared exactly with the default one, paired by element and animation name. Hint naming each moving animation that still runs with a duration above 0 ms (a reset to 1 ms reads as still moving; one to 0.01 ms rounds to 0 and does not); pass when none does; nothing when nothing moved. A fade that replaces a move is not a move. Script motion cannot be read or stopped by the setting check.
|
|
269
|
+
example: >-
|
|
270
|
+
A carousel that swaps slides with a short fade and stops advancing when reduced motion is set.
|
|
271
|
+
counterexample: >-
|
|
272
|
+
A parallax hero that keeps moving its layers when reduced motion is set.
|
|
273
|
+
|
|
274
|
+
- id: MR11
|
|
275
|
+
name: The motion explains the interface and carries the brand
|
|
276
|
+
area: motion
|
|
277
|
+
moment: review
|
|
278
|
+
skill: lazuli-motion-micro-and-transitions
|
|
279
|
+
rule: >-
|
|
280
|
+
Judge, from the filmstrip and the animation inventory, whether the motion tells where things came from and went, answers what the person did, and moves in a way that belongs to the brand (MI1, MI6, MT1, MT2).
|
|
281
|
+
why: >-
|
|
282
|
+
The award level of the kit author's internal product plan for motion is motion that explains the interface and has the brand's personality; no count can tell that. (our claim)
|
|
283
|
+
origin: hypothesis
|
|
284
|
+
status: hypothesis
|
|
285
|
+
hypothesis: H11
|
|
286
|
+
source: >-
|
|
287
|
+
Our claim: the award row of the kit author's internal product plan for motion (default "everything appears with the same fade", award "motion that explains the interface and has the brand's personality"). Judged in words by the reviewer (H11).
|
|
288
|
+
when_to_break: >-
|
|
289
|
+
A product that decides on almost no motion may skip this, declared with break-a-rule first and logged with record-decision.
|
|
290
|
+
break_effect: >-
|
|
291
|
+
The interface stays still and fast, and the brand speaks through everything but motion.
|
|
292
|
+
test: >-
|
|
293
|
+
The reviewer opens the filmstrip (filmstrip.png, written under .lazuli/motion with one row for the load window and one per scripted step that changed the screen) and the animation inventory in the report, and says in words what each movement explains and whether it carries the brand. This rule has no measure: the CLI never says motion has personality, explains anything or feels good.
|
|
294
|
+
example: >-
|
|
295
|
+
A review that names how the product cards grow into the detail view and why the brand's slow settle suits it.
|
|
296
|
+
counterexample: >-
|
|
297
|
+
A review that calls the motion smooth and delightful without naming a single movement.
|
|
298
|
+
|
|
299
|
+
- id: MR12
|
|
300
|
+
name: Three flashes or below
|
|
301
|
+
area: motion
|
|
302
|
+
moment: review
|
|
303
|
+
skill: lazuli-motion-micro-and-transitions
|
|
304
|
+
rule: >-
|
|
305
|
+
WCAG 2.2 Success Criterion 2.3.1 Three Flashes or Below Threshold (Level A): web pages do not contain anything that flashes more than three times in any one second period, or the flash is below the general flash and red flash thresholds (MT7).
|
|
306
|
+
why: >-
|
|
307
|
+
Flashing can cause seizures in some people.
|
|
308
|
+
origin: norm
|
|
309
|
+
source: >-
|
|
310
|
+
W3C, Web Content Accessibility Guidelines (WCAG) 2.2, W3C Recommendation 12 December 2024, https://www.w3.org/TR/WCAG22/ (Success Criterion 2.3.1, Level A, and the definition "general flash and red flash thresholds", opened 2026-11-26): no more than three general flashes and no more than three red flashes within any one-second period, or a combined area of concurrent flashes of no more than 25% of any 10 degree visual field; a general flash is a pair of opposing changes in relative luminance of 10% or more where the darker image is below 0.80; a red flash is a pair of opposing transitions where one state has R/(R + G + B) of 0.8 or more and the difference is more than 0.2 in the CIE 1976 UCS chromaticity diagram; Note 1 gives a 341 x 256 pixel rectangle at 1024 x 768 as the 10 degree field. W3C, Understanding SC 2.3.1, https://www.w3.org/WAI/WCAG22/Understanding/three-flashes-or-below-threshold.html (section "Intent", opened 2026-11-26): substituting CSS pixels, the combined area becomes 341 x 256 CSS pixels. Reading that field in CSS px of the recorded viewport at any width is our reading.
|
|
311
|
+
measure: motion.flashes
|
|
312
|
+
threshold: { maxFlashes: 3, minLumaChange: 0.1, maxDarkLuma: 0.8, minAreaShare: 0.25, fieldWidth: 341, fieldHeight: 256, redRatio: 0.8, redChange: 0.2 }
|
|
313
|
+
when_to_break: >-
|
|
314
|
+
The criterion's own exception is the only room: a flash below the general flash and red flash thresholds. A declared break never waives this norm.
|
|
315
|
+
break_effect: >-
|
|
316
|
+
No effect is bought by flashing past the threshold.
|
|
317
|
+
test: >-
|
|
318
|
+
What is read: frames captured at FRAME_SCALE over the load window and the scripted steps are read in cells of CELL_PX frame px (32 CSS px); in each cell the mean luminance is followed from peak to valley, and a pair of opposing transitions of at least minLumaChange with the darker state under maxDarkLuma is a general flash, a pair touching a red ratio of redRatio or more with a change over redChange is a red flash (red has no luminance floor); flashes count when the cells that close them at the same time cover more than minAreaShare of a fieldWidth by fieldHeight CSS px field. Fail when more than maxFlashes flashes in one second happen in place. What is not seen: a cell mean can cancel a fine balanced pattern (stripes or a checkerboard finer than a cell), so such a pattern can pass, while the criterion's exception for patterns under 0.1 degree is not applied, so a pattern finer than that is never excused; frames during the scripted scroll and for SCROLL_SETTLE_MS after it are not read for flashes (the scroll is taken as over when the page stops scrolling for one frame); a flash whose cells cross the threshold in neighboring frames (a wipe) is split across frames and may be undercounted; content of period P that moves exactly P/2 per frame can read as flashing; movement of more than MAX_SHIFT_PX frame px between two captured frames, and zoom or rotation, are not recognized as movement. When the flashes over the limit involve movement (cells where a shift was found, or animations that move an element), the result is a hint to check the frames by eye with the filmstrip, never a fail and never a pass; only flashes in place fail. A count over the limit stands even when frames came slowly, since slow frames can only undercount; a count at or under the limit is not judged when frames came less often than one per 1000 / (2 x (maxFlashes + 1)) ms, and a pass says the interval it was read at, so a shorter flash is not seen. Changes within PIXEL_NOISE levels are no change; a pass counts the frames read, and when more than MAX_FRAMES came the later ones were not read (a note says so); the seconds a pass names are the load window, though the count covers the steps too; a time before load can read as a negative number of ms. Only the first view is read: a flash lower down the page, or shown only after a scroll, is not seen. Motion at the first width only, on this machine.
|
|
319
|
+
example: >-
|
|
320
|
+
An alert that blinks twice and stops, and a video whose cut sequence was checked frame by frame.
|
|
321
|
+
counterexample: >-
|
|
322
|
+
A hero that strobes between black and white several times a second.
|
|
323
|
+
|
|
324
|
+
- id: MR13
|
|
325
|
+
name: Pause, stop, hide
|
|
326
|
+
area: motion
|
|
327
|
+
moment: review
|
|
328
|
+
skill: lazuli-motion-micro-and-transitions
|
|
329
|
+
rule: >-
|
|
330
|
+
WCAG 2.2 Success Criterion 2.2.2 Pause, Stop, Hide (Level A): for moving, blinking or scrolling information that starts automatically, lasts more than five seconds and is presented in parallel with other content, there is a mechanism for the user to pause, stop or hide it, unless the movement is part of an activity where it is essential (MT7).
|
|
331
|
+
why: >-
|
|
332
|
+
Moving content can be a severe distraction for some people, and five seconds is long enough to get attention but not so long that a person cannot wait it out.
|
|
333
|
+
origin: norm
|
|
334
|
+
source: >-
|
|
335
|
+
W3C, Web Content Accessibility Guidelines (WCAG) 2.2, W3C Recommendation 12 December 2024, https://www.w3.org/TR/WCAG22/ (Success Criterion 2.2.2, Level A, opened 2026-11-26). W3C, Understanding SC 2.2.2 Pause, Stop, Hide, https://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide.html (section "Intent", opened 2026-11-26): five seconds was chosen because it is long enough to get attention but not so long that a user cannot wait out the distraction; moving content can be a severe distraction for some people; a mechanism to pause must not tie up the user or the focus. Reading moving content from frame cells is our reading.
|
|
336
|
+
measure: motion.moving
|
|
337
|
+
threshold: { maxMovingMs: 5000 }
|
|
338
|
+
when_to_break: >-
|
|
339
|
+
The criterion's own exceptions are the only room: movement essential to an activity, an animation in a preload phase where no interaction can happen. A declared break never waives this norm.
|
|
340
|
+
break_effect: >-
|
|
341
|
+
No effect is bought outside the exceptions; inside them, the motion is the activity itself.
|
|
342
|
+
test: >-
|
|
343
|
+
What is read: frames over the full load window (LOAD_WINDOW_MS) are read in cells of CELL_PX frame px; a cell moves when it changes by more than PIXEL_NOISE levels in at least MIN_MOVING_SECONDS distinct whole seconds over more than maxMovingMs, so one late image is not motion. Fail when content moves that long and the page has no control whose accessible name holds one of PAUSE_WORDS as a whole word (pause, stop, hide and their Portuguese forms) and no video or audio with controls, naming the moving element; pass with a note for the reviewer when such a control exists, since whether it pauses that content is not read; pass when nothing moved that long; nothing when the recording was not longer than maxMovingMs. The settle reading (MR8) leaves these areas out and they are judged here. What is not seen: content that starts after the first 2 s of the window (it cannot show more than maxMovingMs of movement before the window ends); an auto carousel whose cycle is longer than the window allows, so it changes in fewer than MIN_MOVING_SECONDS distinct seconds; a control whose name lacks the words, such as an icon button with no name or a name in another language; auto-updating content that changes rarely; content outside the first view (lower down the page, or shown only after a scroll), so a ticker or banner there is not read and its pass says nothing about it. Motion at the first width only, on this machine.
|
|
344
|
+
example: >-
|
|
345
|
+
A logo ticker with a visible Pause button before it in the focus order.
|
|
346
|
+
counterexample: >-
|
|
347
|
+
A hero carousel that advances on its own forever with no pause control, next to the page's main text.
|