Behaviour SwRS-MDOKFSTUDIO-TOOLBAR-025
The sticky band is fixed, aligned with the column and clear of the toolbar
When the band is shown, hidden or changes its number of lines, the extension SHALL keep it fixed to the top of the pane at full width with no gap above it, outside the document flow and ignoring pointer events, with its text aligned to the content column, ending before the toolbar and narrowed by the table of contents reserve, keeping each heading level on one line, cut with an ellipsis when it is too long, and draw it flat and bold, ended by a one pixel rule, with a soft shadow below it, in the colour set of the active theme, only while text scrolls under it, and none at the top of the page.
Step 2 of path 1 in StRS-MDOKFSTUDIO-TOOLBAR-004: from “The band shows the current heading path” to “The current section stays pinned at the top”.
Part of StRS-MDOKFSTUDIO-TOOLBAR-006, outside the paths drawn on its map.
Scenarios 11
The situations the tests check; open one to read it.
nominalBand grows
nominalPointer
boundaryText aligned with the column
| Pane | Outcome |
|---|---|
| 900 px in Margin width | the left edges of the band text box and of the content column are equal within 1 px |
| 460 px | their left edges are equal within 1 px |
boundaryText stops before the toolbar
| Input | Outcome |
|---|---|
| toolbar's left edge is left of the column's right edge | the text right edge is the toolbar left edge minus 8 px |
| wide pane where the toolbar is right of the column | the text right edge is the column's right edge |
boundaryRoom published for the toolbar
| Input | Outcome |
|---|---|
| toolbar grows from collapsed to expanded, then the band position is refreshed | --sphinx-preview-toolbar-width on the band is the new toolbar width plus 22 px |
| no toolbar, or a toolbar whose width is not finite | the variable is 0 px |
boundaryTable of contents reserve
| Input | Outcome |
|---|---|
| 900 px pane with the table of contents open | the band is narrowed by 256 px and its right edge is at most the left edge of the column |
| 460 px pane with the button pressed | the band width is not reduced, because the column is hidden |
boundaryLong heading cut with an ellipsis
depth 1, a long H1 and a zoom of 160 %
the band is measured
the band is one line and the first line of the section is below the band
nominalFlat, bold style with a rule
the borders of the band and of the first heading of the page are compared
the band border and the h1 border have the same colour
nominalText scrolls under the band
the toolbar, stacked above the band, is not covered by the shadow