Skip to content

Let a flow written the other way from its column grow toward its room - #5622

Merged
max-sixty merged 1 commit into
mainfrom
page-width-diagnosis
Nov 7, 2026
Merged

max-sixty merged 1 commit into
mainfrom
page-width-diagnosis

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The column states the room on each side of it in its own direction (--lf-free-start, --lf-free-end), and a flow in it read those as its own start and end. So a flow written the other way from its column took the room from the wrong side. Beside a contents map, where all the room is on one side, a right-to-left question or layout-flow section on a left-to-right page grew toward the map: its available block stood at -334 to 1032 in a 1726px window, 334px past the left edge, and its wide block covered the map. A left-to-right flow on a right-to-left page did the same on the right.

The column now also states the room by side (--lf-free-left, --lf-free-right), and each flow takes its start and end from those in its own direction. A flow written either way now reaches the same room as the page's own blocks, and a wide block whose end faces the map keeps to the prose. In a centred column both sides hold the same room, so nothing there moves: the probe read the same boxes on base and head in Chromium and Firefox. The two new lengths reset with the others below the blocks that read them (#5609), and a forced restyle on 100 paragraphs of 24 words took 1.4–1.5 ms on base and head alike.

test_a_flow_written_the_other_way_grows_toward_the_room covers both page directions and fails on main. The 101 breakout, note, table, sidebar and obligation tests in the render and layout files pass.

This was written by Claude Code on behalf of max-sixty

The column states the room on each side in its own direction, and a flow
in it read `--lf-free-start` and `--lf-free-end` as its own start and end.
A right-to-left question or section on a left-to-right page beside a
contents map therefore grew toward the map: its available block stood at
-334 to 1032 in a 1726px window, 334px past the left edge, and its wide
block covered the map. The column now also states the room by side
(`--lf-free-left`, `--lf-free-right`), and each flow takes its start and
end from those in its own direction, so a flow written either way reaches
the same room as the page's own blocks. Centred columns, where both sides
hold the same room, are unchanged. The two new lengths reset with the
others below the blocks that read them; a forced restyle on 100 paragraphs
of 24 words took 1.4-1.5 ms on base and head alike.
@max-sixty
max-sixty merged commit ce07698 into main Nov 7, 2026
5 checks passed
@max-sixty
max-sixty deleted the page-width-diagnosis branch November 7, 2026 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants