Repository navigation
Keep workspace tab height without restyling code controls - #3143
Merged
Merged
Conversation
Mark the opening view's sole content block during prepaint and use that marker for the first-paint height rule. Chrome otherwise recalculates style for every code-copy control when unrelated chrome changes. Preserve the single-block workspace layout and check it while the runtime is held.
max-sixty
added a commit
that referenced
this pull request
Oct 18, 2026
…aint main's #3143 marked a workspace page tab's only block in prepaint so its first-paint height rule needs no structural selector. This branch has no page tabs, so the merge drops the marker, its rule and its test, and adds the views form of that test: a workspace view fills the height the title leaves before the runtime upgrades the set, and nothing moves when it does. That test failed: the list, whose window height the grid relied on, is drawn only at upgrade, so before it the workspace view collapsed to 8px. main again states the window's height as its own minimum. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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 new first-paint height rule for a workspace page tab made unrelated chrome insertion restyle code-copy controls across a document. In the failing main run,
test_code_copy_reads_sources_before_positioning_many_controlsmeasured 680 style invalidations with 60 controls versus 225 with one. The result reproduces on main and disappears when the new opening-tab rule is removed.The opening view now marks its sole content block during the existing prepaint pass. The height rule selects that marker instead of a structural child selector. This keeps the full-height page tab behavior introduced by #3141, including before the runtime upgrades, while the original performance assertion passes. A browser test holds the runtime script and checks that the opening block fills its tab from first paint.
Verification: the failing browser test and new first-paint test pass; the workspace and code-comparison cases pass;
pnpm run checkand pre-commit pass. A servedcode-comparisonstartup comparison has 54 requests on both arms before presentation, with 102 more bytes on this branch and the same recorded layout shifts.