You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): flag caption-zone by DOM box overlap (#3580)
A card centered at y=.860 can still cover the painted V2A pill. Intersect the element's getBoundingClientRect with the keepout instead of testing whether its center sits inside the band.
Copy file name to clipboardExpand all lines: docs/packages/cli.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -624,7 +624,7 @@ drift), `*.motion.json` assertions, and WCAG AA contrast.
624
624
|`--timeout`| Render-ready budget in ms; also raises page navigation above its 10s floor (default 3000) |
625
625
|`--no-contrast`| Skip the WCAG pass while iterating |
626
626
|`--strict`| Exit non-zero on warnings too (default: errors only) |
627
-
|`--caption-zone "<x0=..;y0=..;x1=..;y1=..>"`| Opt-in band gate. Flags content whose centre sits inside the fractional band. Optional `severity` and `seek`.|
627
+
|`--caption-zone "<x0=..;y0=..;x1=..;y1=..>"`| Opt-in band gate. Flags a text element's DOM box that overlaps the fractional band. Optional `severity` and `seek`. |
628
628
|`--frame-check`| Opt-in out-of-frame detection for `img`, `svg`, `video`, and `canvas`|
629
629
|`--layout`| Layout knobs, currently `proseCoverageFloor=0.05` (0–1, default 0.15) |
npx hyperframes check --frame-check # media (img/svg/video/canvas) out-of-frame detection
68
68
```
69
69
70
-
`--caption-zone` takes fractional band geometry (`x0/y0/x1/y1` required, 0-1 fractions of the composition's own canvas, portrait included) with optional `severity` and comma-separated `seek` fractions; it flags content whose center sits inside the band. Waive intentional lower-third copy with `data-layout-allow-caption-zone` on the element or its nearest wrapper (see Escape hatches). `--frame-check` reports media elements breaching the canvas beyond `max(120px, 6% of the min canvas dimension)`.
70
+
`--caption-zone` takes fractional band geometry (`x0/y0/x1/y1` required, 0-1 fractions of the composition's own canvas, portrait included) with optional `severity` and comma-separated `seek` fractions; it flags a text element's DOM box (`getBoundingClientRect`) that overlaps the band. Waive intentional lower-third copy with `data-layout-allow-caption-zone` on the element or its nearest wrapper (see Escape hatches). `--frame-check` reports media elements breaching the canvas beyond `max(120px, 6% of the min canvas dimension)`.
71
71
72
72
**Fixing contrast errors** — thresholds are 4.5:1 for normal text, 3:1 for large text (24px+, or 19px+ bold). The finding's `suggestedColor` already picks the nearest compliant color in the right direction (brighten on dark backgrounds, darken on light); apply it or adjust within the palette family, then re-run `check`.
0 commit comments