UI stress test

Nested components stacked inside each other, like bold and code inside links and tables inside lists, to find where the styles break.

Most cases are real markdown through the same renderer as notes and posts, so they show what a page would. The rest are components that markdown can't produce. Each has a line on what to look for.

Typography inside a blockquote

Headings, lists and a rule inside a quote: spacing between blocks, the quote's italics reaching things that shouldn't be italic, the left rule's height.

A heading inside a quote

Paragraph with bold, italic, strike, inline code, and a link.

A smaller heading

A second paragraph straight after it.

  • a list
  • inside the quote
    • nested one level

  1. an ordered list
  2. also inside

The smallest heading

Last line of the quote.

Code blocks inside a blockquote

A code block in a quote: its width against the quote's padding, whether the text goes italic, the gap before and after it.

Before the code.

ts
const message = "a code block inside a blockquote";
console.log(message);

After the code.

text
a block with no language

Blockquotes three deep

Rules stacking up on the left, indent adding up, a code block at the bottom, the paragraph that follows each level.

Level 1 paragraph.

Level 2 paragraph.

Level 3 paragraph with inline code.

sh
echo "three quotes deep"

Back at level 2.

Back at level 1.

A table inside a blockquote

Does the table scroll or overflow the quote, and does it inherit the quote's italics?

Column AColumn BColumn C
plaincodebold
a longer cell that has to wrap onto another line inside the quote23

Nested and loose lists

Four levels of nesting, paragraphs in a list item, a code block, a quote and a table inside items: indents, markers and gaps.

  1. First step

    • a nested bullet with code
    • another nested bullet
      1. a deep ordered item
      2. its sibling
        • the deepest bullet, with a link
  2. A loose item that has paragraphs.

    A second paragraph in the same item.

    sh
    npm run dev

    A quote inside a list item.

    ts
    const nested = "code in a quote in a list";
  3. A last item with a table:

    ab
    12

Headings followed by blocks

The gap under each heading when a code block, quote, table, list or another heading comes straight after it.

Heading, then code

ts
const afterHeading = true;

Heading, then a quote

straight after a heading

Heading, then a table

ab
12
Heading, then a list
  • one
  • two
Heading, then another heading
And another straight after

Task lists

Checkboxes in place of bullets, the box lined up with its text, a finished item struck through without striking its nested items, and ordered tasks.

  • a finished item
  • an open item
  • an item with code and a link
    • a nested finished item
    • a nested open item
  • a finished parent
    • with an open child, which should not be struck
  • a long open item that has to wrap onto more than one line, to show where the text sits against the box
  1. an ordered task
  2. another one

Footnotes

The renderer doesn't style the footnote section or its back-links, so see whether they appear and how they look.

This sentence has a footnote1 and another one2, in the middle of a paragraph.

Footnotes

  1. The first footnote. ↩

  2. The second, with inline code and a link. ↩

Inline formatting, stacked

Bold, italic, strike, code and links nested in each other, then long unbreakable strings: wrapping, overflow and chip backgrounds across line breaks.

Everything at once: bold italic struck code inside, then a link with bold and code in it, then both.

code inside a link and [a link inside code](/about) are different things.

A very long unbreakable string: supercalifragilisticsupercalifragilisticsupercalifragilisticsupercalifragilisticsupercalifragilisticsupercalifragilisticsupercalifragilisticsupercalifragilistic and a long inline code someVeryLongIdentifierNamesomeVeryLongIdentifierNamesomeVeryLongIdentifierNamesomeVeryLongIdentifierNamesomeVeryLongIdentifierNamesomeVeryLongIdentifierName and a long URL https://example.com/a-very-long-path-segment/a-very-long-path-segment/a-very-long-path-segment/a-very-long-path-segment/a-very-long-path-segment/a-very-long-path-segment/end.

Link hover blocks on headings and across wrapped lines, and the difference between code inside a link and a link inside code.

A paragraph whose link wraps across more than one line, which is where hover blocks and rings tend to break: this deliberately long link text should wrap onto a second line on most screens and keep its highlight on every line.

Images in other blocks

A pixelated drawing in a quote, a list item and a link: does it stay inside its container and keep its aspect ratio?

A paragraph, then an image:

A Paint drawing

A quote with an image:

A Paint drawing in a quote

  • A list item with an image:

    A Paint drawing in a list

A linked portrait

Horizontal rules

A rule between paragraphs, after a list, and inside a quote: spacing above and below.

A paragraph before a rule.


A paragraph after it.

  • a list
  • then a rule

A quote


with a rule inside it

Code blocks, awkwardly

Back-to-back blocks, none, an empty one, a very long line, 60 lines, and a few languages: gaps, scrolling, heights.

Two blocks back to back:

ts
const first = 1;
ts
const second = 2;

A block with no language, an empty one, and a one-line one:

text
no language here
ts
json
{ "single": "line" }

One very long line:

ts
const long = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

Many lines:

ts
const line1 = 1; // line 1
const line2 = 2; // line 2
const line3 = 3; // line 3
const line4 = 4; // line 4
const line5 = 5; // line 5
const line6 = 6; // line 6
const line7 = 7; // line 7
const line8 = 8; // line 8
const line9 = 9; // line 9
const line10 = 10; // line 10
const line11 = 11; // line 11
const line12 = 12; // line 12
const line13 = 13; // line 13
const line14 = 14; // line 14
const line15 = 15; // line 15
const line16 = 16; // line 16
const line17 = 17; // line 17
const line18 = 18; // line 18
const line19 = 19; // line 19
const line20 = 20; // line 20
const line21 = 21; // line 21
const line22 = 22; // line 22
const line23 = 23; // line 23
const line24 = 24; // line 24
const line25 = 25; // line 25
const line26 = 26; // line 26
const line27 = 27; // line 27
const line28 = 28; // line 28
const line29 = 29; // line 29
const line30 = 30; // line 30
const line31 = 31; // line 31
const line32 = 32; // line 32
const line33 = 33; // line 33
const line34 = 34; // line 34
const line35 = 35; // line 35
const line36 = 36; // line 36
const line37 = 37; // line 37
const line38 = 38; // line 38
const line39 = 39; // line 39
const line40 = 40; // line 40
const line41 = 41; // line 41
const line42 = 42; // line 42
const line43 = 43; // line 43
const line44 = 44; // line 44
const line45 = 45; // line 45
const line46 = 46; // line 46
const line47 = 47; // line 47
const line48 = 48; // line 48
const line49 = 49; // line 49
const line50 = 50; // line 50
const line51 = 51; // line 51
const line52 = 52; // line 52
const line53 = 53; // line 53
const line54 = 54; // line 54
const line55 = 55; // line 55
const line56 = 56; // line 56
const line57 = 57; // line 57
const line58 = 58; // line 58
const line59 = 59; // line 59
const line60 = 60; // line 60

Other languages:

css
.card { border: 1px solid var(--border); }
diff
- const old = 1;
+ const next = 2;
tsx
export const X = () => <div className="x">hi</div>;

Every text component in one quote

The typography components that markdown can't produce, together inside a blockquote: Lead, Muted, CapsLabel, Small, Highlight, Underline.

An H3 in a quote

A lead paragraph, muted and body size.

A paragraph with bold, italic, underline, strike, a highlight and code.

A muted line, small.

A caps labelSmall fine print at the end.

H4

H5
H6

A multi-file code block inside a quote and a list

Tabs, the file explorer and the scroll areas inside narrower containers: do the tabs overflow, does the explorer still fit?

A multi-file code block inside a quote:

tsxsrc/app/page.tsx
export default function Page() {
  return <h1>Hello</h1>;
}
  • A multi-file code block inside a list item:
    tsxsrc/app/page.tsx
    export default function Page() {
      return <h1>Hello</h1>;
    }

An accordion and a table inside a quote

Interactive and table components in a quote: the accordion's chevrons and hover blocks, and the table's scroll against the quote's edge.

ComponentInside
TableBlockquote

Wrapping inline backgrounds

Highlight, underline and inline code that wrap across lines, which is where box decorations and padding usually break. Narrow the window.

a highlighted run of words long enough that it will have to wrap onto several lines on a phone and show how the background behaves at each break then an underlined run that is also long enough to wrap across more than one line of text then an inline code run with spaces that is long enough to wrap across more than one line as well.

  • Table stress

    Tables with very wide cells, long unbroken words and many columns, to check how they scroll and wrap.

  • Text colors

    Every text color token with its value and where it's used, plus before-and-after comparisons for consolidating them.

  • Muted text

    Muted text styles and color nudges for intros, descriptions and meta lines, each shown in a realistic page sample.

  • Link hovers

    Nine inline link hover styles side by side, from solid fill to borders and underlines, for choosing the site's link look.