Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-LAYOUT-003

A reader chooses how wide the text column is

As a writer or team, I choose how wide the text column is, from a narrow measure to the whole pane, and every open preview follows; as a reader, I switch between a narrow reading column, a column that lets wide content out, and the full pane with one button, the choice is still there when I come back, I see wide tables, pictures and diagrams in full in Auto when the pane has room, and I can rely on Margin to keep everything in a readable column and on Full width to use the whole pane.

Use case diagram

How it is split

This use case (StRS) is reached by 2 paths, one per coloured line. A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests. Where paths meet, they share the circle or the step.

path 1: Change the width mode path 2: Set the width in the settings other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-LAYOUT-020: The Width button cycles Margin, Auto and Full and keeps the reading lineSwRS-MDOKFSTUDIO-LAYOUT-0203 teststhe reader presses the Widthbutton and the mode goes Margin,Auto, Full width, back to Margin,keeping the reading lineSwRS-MDOKFSTUDIO-LAYOUT-023: Auto width lets wide blocks break out of the columnSwRS-MDOKFSTUDIO-LAYOUT-0239 testsin Auto, a table, figure, image,code block or Mermaid diagramwider than the column is widenedup to the available areaSwRS-MDOKFSTUDIO-LIFE-169: A view choice made on the page is stored for the workspaceSwRS-MDOKFSTUDIO-LIFE-16915 teststhe page keeps the choice in thesaved panel state and the hoststores it for the workspaceSwRS-MDOKFSTUDIO-LAYOUT-002: The text column width follows the maxContentWidth settingSwRS-MDOKFSTUDIO-LAYOUT-0027 teststhe page shows a text columnexactly that wide, centred in awider paneSwRS-MDOKFSTUDIO-LAYOUT-020: The Width button cycles Margin, Auto and Full and keeps the reading lineSwRS-MDOKFSTUDIO-LAYOUT-0203 testsno reading position is knownyetSwRS-MDOKFSTUDIO-LAYOUT-022: Margin keeps blocks in the column and Full removes the limitSwRS-MDOKFSTUDIO-LAYOUT-0225 testsin Full width the columnlimit is lifted and the pagekeeps a 16 px gutterSwRS-MDOKFSTUDIO-LAYOUT-044: Auto keeps a table in the column when its minimum widths fitSwRS-MDOKFSTUDIO-LAYOUT-0441 testin Auto, a table whose columnminimums fit stays inside thetext columnSwRS-MDOKFSTUDIO-LIFE-169: A view choice made on the page is stored for the workspaceSwRS-MDOKFSTUDIO-LIFE-16915 teststhe host refuses a value outside the tableSwRS-MDOKFSTUDIO-LAYOUT-002: The text column width follows the maxContentWidth settingSwRS-MDOKFSTUDIO-LAYOUT-0027 testsa value of 0 lifts the limitThe text column is as wide as the setting says (paths 1, 2)The text column is aswide as the setting saysThe width mode has changedThe width mode haschangedWide content is drawn at the width it needsWide content is drawn atthe width it needsThe width choice is kept for the workspaceThe width choice is keptfor the workspaceThe setting maxContentWidth is changedThe settingmaxContentWidth ischanged

This map has 493 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 6 behaviours on the map are tested one by one, with 43 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-LAYOUT-002The text column width follows the maxContentWidth setting 7 testsSwRS-MDOKFSTUDIO-LAYOUT-020The Width button cycles Margin, Auto and Full and keeps the reading line 3 testsSwRS-MDOKFSTUDIO-LAYOUT-022Margin keeps blocks in the column and Full removes the limit 5 testsSwRS-MDOKFSTUDIO-LAYOUT-023Auto width lets wide blocks break out of the column 9 testsSwRS-MDOKFSTUDIO-LAYOUT-044Auto keeps a table in the column when its minimum widths fit 1 test
SwRS-MDOKFSTUDIO-DIAG-021Diagrams can use the wider column in Auto width deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-003The maximum content width is rounded and capped at 2400 superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-002 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-004A width of zero lifts the column limit superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-002 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-005Each rendered page carries the width rule superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-002 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-006Open previews follow a change of the width setting superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-002 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-021A width mode choice is saved for the workspace superseded superseded by SwRS-MDOKFSTUDIO-LIFE-169 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-024Auto width excludes the open table-of-contents column superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-023 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-025Auto measures a wide table uncapped and rounds up superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-023 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-026Auto leaves edited and relatively sized elements in the column superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-023 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-027Auto uses the author's pixel width for an image breakout superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-023 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-028Full width removes the column limit superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-022 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-029Narrow tables and figures are centred in every width mode superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-022 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-030A paragraph holding only an image is marked as a figure superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-022 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-031Auto measures wide elements again when the layout changes superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-023 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-036A negative or non-numeric width falls back to 960 superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-002 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-038The saved width mode is restored when the page starts superseded superseded by SwRS-MDOKFSTUDIO-LIFE-170 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-039Full width centres the content with gutters of at least 15 px superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-022 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-040A width mode change keeps the reading line superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-020 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-041A width mode change measures the first-element clearance again superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-018 Markdown file