Repository navigation
fix: make the lf-scroll registry example overflow its box - #5930
Merged
Merged
Conversation
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
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
.lf-scrollregistry example added in #5865 never scrolled: its box had nooverflow-x: auto, andbase.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 setsoverflow-x: autoon the box andmax-width: noneon the SVG (an inline declaration, which outranks the fit rule's selector), and the registry description andpage-authoring.md'slf-scrollparagraph 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.cssalone. 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 missingoverflow-xspilling 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: noneopt-out scrolls and gets Leaf's tab stop and cues.Closes #5929 — automated triage