fix(editor): state the pinned column's window bounds; tidy its tests

The canvas is unchanged for browser windows of the three sizes, smaller
in shorter ones; below 644 px of window height nothing is pinned (CSS
comment, rendering doc, owner trial step 18). A page-top focus on the add
row reveals it below the strip; the geometry helper is split, long test
titles wrapped.
This commit is contained in:
bchanot committed 2026-11-19 20:40:02 +01:00
1 parent 5e6d74428f
commit 031826dced
4 files changed
+220 -174

No files matched your search

+11 -6
View File
@@ -255,13 +255,18 @@ always fits the window, the canvas box (`data-canvas-box`) is capped in width at
`(100svh − --edit-pinned-top − 9.25 rem) × 4/3 + 2 px` (9.25 rem: one row of
chips, one add row, the line and the gaps; 2 px: the box's border), keeping its
4:3 ratio: the cap follows the window's small viewport height, never the
scroll nor a collapsing browser toolbar, and leaves the box unchanged at
1 024 × 768, 1 180 × 820 and 1 280 × 800; a capped box sits left, with spare
width on its right. Its focusables carry only the bar's margin there (the
scroll nor a collapsing browser toolbar. The box is unchanged when the browser
window (not the screen) is 1 024 × 768, 1 180 × 820 or 1 280 × 800, and smaller
in shorter windows (capped below 672, 789 and 672 px of window height at those
widths; a tablet's browser toolbars take their height off the screen's); a
capped box sits left, with spare width on its right. The 9.25 rem assumes one
row of view chips: a sheet whose chips wrap to a second row makes the column
about 38 px taller than the cap allows, so where the cap binds the column's
top goes under the strip at the end of the page. Its focusables carry only the bar's margin there (the
strip's margin, larger than the pinned top, would scroll the page on a focus of
a pinned control). Below 644 px high the tool column (365 px) no longer fits
beside a capped box: nothing is pinned or capped, and the drawing scrolls under
the strip as before, with the strip's margin on its focusables.
a pinned control). Below 644 px of window height the tool column (365 px) no
longer fits beside a capped box: nothing is pinned or capped, and the drawing
scrolls under the strip as before, with the strip's margin on its focusables.
The editor page's other focusables (criterion 25: the header's « Enregistrer », the
tab row, « Défaire » and « Refaire », the notices' controls) carry a smaller margin,
+3
View File
@@ -790,6 +790,9 @@ Tablette en paysage (au moins 1 024 px de large ; en dessous, l'éditeur est en
18. Tablette et fenêtres de 1 024, 1 180 et 1 280 px : la bande qui reste en haut. Action : faites défiler la page
avec une annotation sélectionnée. Attendu : la bande reste entière sous la barre du haut, rien ne bouge et rien
n'est caché derrière. Un Tab sur une commande de la bande ou sur un lien de la barre ne fait pas défiler la page.
Sur la tablette, faites défiler la page des annotations jusqu'à la fin : aucune partie du dessin, de ses boutons
de vue, de la rangée d'ajout ou de la ligne de message ne passe sous la bande. Si une partie y passe, notez-le :
la fenêtre fait alors moins de 644 px de haut.
19. Refaire retenu. Préparez quelque chose à défaire et à refaire : créez un point, déplacez-le d'un pas aux flèches
validé par Entrée, puis « Défaire ». Action : outil « Zone », posez un sommet (la boîte de « Point » s'ouvre tout
de suite et cache l'en-tête : prenez « Zone »), puis donnez le focus à « Refaire » puis à « Défaire » : un lecteur