Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-LAYOUT-001

The preview page never scrolls sideways

When a document holds wide content, long words or long URLs, the extension SHALL keep the preview page free of sideways scrolling in every width mode, theme and pane width.

Step 1 of path 2 in StRS-MDOKFSTUDIO-LAYOUT-001: from “A document holds long words or long URLs” to “The page does not scroll sideways”.

Scenarios 3

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

nominalEach width mode at 460 px
Giventhe light theme, a 460 px pane and a document with a table, a code block and a figure wider than the column (visual scenarios v78, v79 and v80)
Whenthe preview is rendered in Margin, Auto and Full width
Thenthe page does not scroll horizontally (horizontal overflow of at most 1 px) in all three modes
nominalLong words and URLs wrap
Giventext blocks, links and table cells holding long words or bare URLs
Whenthe preview is rendered
Thenthe text blocks, links and table cells carry overflow-wrap anywhere so that long words and URLs wrap and the page does not widen (a table wider than the pane scrolls inside its own box, see SwRS-MDOKFSTUDIO-LAYOUT-032)
nominalGitHub Flavored Markdown gallery
Giventhe GFM gallery document (five alerts, strikethrough, two footnotes, three task checkboxes, a right-aligned column, a raw HTML table, a raw details block and an autolink) in dark at 900 px, light at 900 px and light at 460 px (visual scenarios gfm/v02, gfm/v03 and gfm/v04)
Whenthe preview is rendered
Thenthe page has no horizontal overflow in all three cases

Implemented in 2

Tested by 4

Known limits (2)

Replaces

SwRS-MDOKFSTUDIO-LAYOUT-035Machine geometry checks report four layout defects superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-001 Markdown file