Conversation
Add scrollbar-gutter: stable (Baseline 2024) to all vertical-scroll containers to reserve scrollbar gutter space and prevent layout shifts: - main: also adds missing overflow-y: auto so long pages are independently scrollable (html has overflow-y: hidden, so main must be its own scroll container) - #fsdocs-main-menu: sidebar no longer reflows content when the scrollbar appears/disappears - Mobile .menu dropdown: same benefit - dialog ul (search results): prevents width shift when results exceed max-height Closes #1087 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
nojaf
approved these changes
Mar 11, 2026
9 tasks
…stable-c082a7bff89172f4
Collaborator
|
/repo-assist can you bump the release notes so we have another alpha after this PR. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
Commit pushed:
|
Collaborator
|
@dsyme would like to release another alpha. Could I get your signature on this? |
dsyme
approved these changes
Mar 13, 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.
🤖 This is an automated PR from Repo Assist.
Closes #1087
What
Adds [
scrollbar-gutter: stable]((developer.mozilla.org/redacted) (part of the [2024 Baseline]((web.dev/redacted) to all vertical-scroll containers infsdocs-default.css.Why
scrollbar-gutter: stablereserves the scrollbar track space even when the scrollbar isn't visible. Without it, layout shifts occur whenever a scroll container gains or loses a scrollbar — content reflows as the available width changes by ~15 px (the scrollbar width).Changes
mainoverflow-y: auto(bug fix — see below) +scrollbar-gutter: stable#fsdocs-main-menuscrollbar-gutter: stable.menudropdownscrollbar-gutter: stabledialog ul(search results)scrollbar-gutter: stableBug fix: missing
overflow-y: autoonmainThe global reset sets
html { overflow-y: hidden }, which prevents the document viewport from scrolling. The intent is thatmainand#fsdocs-main-menueach scroll independently within the fixed-height layout. The sidebar already hadoverflow-y: auto;mainwas missing it, meaning long pages were clipped rather than scrollable at themainlevel. This PR adds it.Browser support
scrollbar-gutteris [Baseline 2024]((caniuse.com/redacted) — supported in Chrome 94+, Firefox 97+, Safari 15.8+. All browsers from the 2024 baseline are covered.Test Status
CSS-only change, no build or test failures expected. The project's test suite does not include visual/CSS regression tests.