Repository navigation
Let a flow written the other way from its column grow toward its room - #5622
Merged
Merged
Conversation
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.
leaf-agent
approved these changes
Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 orlayout-flowsection 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_roomcovers both page directions and fails on main. The 101 breakout, note, table, sidebar and obligation tests in the render and layout files pass.