Skip to content

fix: make the lf-scroll registry example overflow its box - #5930

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5929
Nov 13, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5929

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The .lf-scroll registry example added in #5865 never scrolled: its box had no overflow-x: auto, and base.css's media fit rule shrank its 1600px SVG to the box's width. An agent copying the example got the class with no tab stop and no continuation cues, and nothing reported it. The example now sets overflow-x: auto on the box and max-width: none on the SVG (an inline declaration, which outranks the fit rule's selector), and the registry description and page-authoring.md's lf-scroll paragraph say that media inside the box has to opt out of the fit rule.

This takes the first of the two settlements #5929 lists and leaves base.css alone. The other — exempting .lf-scroll's media from the fit rule — would make the idiom work without the opt-out, and its failure (a box missing overflow-x spilling sideways) is one the render gate already refuses, whereas the current failure passes silently. It is still open as a product choice; if a maintainer takes it, the sentence added here comes out with it.

Verification: the vocabulary, layer-contract and layer interaction tests (259) pass, and prettier/typos pass on both files. Chrome can't start in this sandbox (it can't open a unix socket), so I couldn't render the example; the claim that it overflows rests on the cascade above. #5924 confirmed in Chromium that a gallery box with the same max-width: none opt-out scrolls and gets Leaf's tab stop and cues.

Closes #5929 — automated triage

The example put a 1600px SVG in an lf-scroll box with no overflow-x and no
opt-out from base.css's media fit rule, so the SVG shrank to the box and the
box never scrolled. The example now sets overflow-x: auto on the box and
max-width: none on the SVG, and the registry description and page-authoring.md
say that media inside the box must opt out of the fit rule to keep its width.

Closes #5929
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.

The lf-scroll registry example never scrolls: Leaf's fit rule shrinks its SVG to the box

1 participant