Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-TOOLBAR-130

The toolbar rows unroll as one block and a load hint shows them

When the reader expands or collapses the toolbar, the extension SHALL unroll or roll up rows 2 to 4 as one block over 160 ms (height and fade), and when a panel opens its preview with the toolbar saved as collapsed, the extension SHALL unroll the rows once for 700 ms and roll them up again without changing the saved choice, cancelled by any pointer or key press, and with no motion when the user prefers reduced motion.

Step 4 of path 1 in StRS-MDOKFSTUDIO-TOOLBAR-001: from “A new preview of the workspace opens collapsed” to “The toolbar is collapsed and shows that it can expand”.

Scenarios 3

The situations the tests check; open one to read it.

nominalRows 2 to 4 unroll and roll up as one block
Givena preview with the toolbar
Whenthe reader presses the chevron
Thenrows 2 to 4 get the animating mark before the hidden attribute changes, unroll (from zero height, fading in) or roll up (height and opacity to zero) together over 160 ms, and lose the mark at the end
the layout is measured again when the mark goes, 200 ms after the last change, also after the load hint
nominalLoad hint
InputOutcome
a panel opens its preview, the saved choice is collapsed, no hint was shown yet for this paneltwo frames after the page starts (the collapsed toolbar is painted first) the rows unroll, stay open 700 ms, and roll up; the root carries data-sphinx-preview-toolbar-hint meanwhile
a pointer press or key press (not on the chevron) while the hint runsthe hint stops and the rows are hidden at once; a press or key on the chevron is left to its click, which keeps the open rows as they are (no new animation)
the hint ends or is cancelledthe saved choice, the toolbar state attribute, aria-expanded and the posted preferences are unchanged
a refresh, a reload, a content patch, or the panel following another documentno hint (a boolean in the webview state, carried by every state snapshot, records that the panel showed it)
the pending overlay while the hint runsit stays below the four open rows
the toolbar is saved as expandedno hint and no animation at page start
refusalReduced motion
Giventhe user prefers reduced motion
Whenthe page starts or the chevron is pressed
Thenthe rows are shown or hidden without animation and without the hint

Implemented in 4

Tested by 3