Repository navigation
test: expect no clipped-out finding for a box sized past only the window's right edge - #5574
Merged
Merged
Conversation
…iling edge #5120 removed the root's `overflow-x: hidden`, so content past the window's right edge is reached by the root's sideways scroll and reported through `page-scrolls`, no longer as `clipped-out` by the root. The breakout test's `#sized` box extends only to the right, so its `clipped-out` finding went away by design; `#bare` and `#tinted` reach off the leading edge and keep theirs. Each box still reports `past-column`. Behavior changed: none beyond #5120's; the test's expectation follows it. Closes #5489
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.
test_an_obligation_spanning_its_block_is_a_breakouthas failed on main since #5120 because it still expectsclipped-outon<div id=sized>. #5120 deleted the root'soverflow-x: hiddenso a page wider than the window scrolls sideways, and its description says content past the window's right edge is now reported throughpage-scrolls, no longer also asclipped-outby the root.#sizediswidth: calc(100% + 600px), so it reaches past the right edge only. That finding went away by design.#bareand#tinteduse negative margins on both sides, so they still reach off the leading edge, which no scroll reaches, and keepclipped-out. All three still reportpast-column.This PR drops the stale pin and says in the docstring which boxes are clipped and why. It changes no code and no behavior beyond what #5120 intended.
Verified with
uv run pytest --run-mainon that test: it failed on990cc5f4a, the same diff as the issue's, and passes with this change. Withbrowser/base.cssrestored tof69c5e9fe^(the rule back), the updated test fails again, which ties the dropped finding to that rule.Closes #5489 — automated triage