Repository navigation
test: check the chrome root sits at the document origin instead of staying static - #5507
Merged
Merged
Conversation
…position #5228 made Leaf's interface root `position: absolute` at the document's origin (`base.css`, `:root > .lf-chrome`), so the aim test's assertion that it stays `static` fails on main. What the test protects is that an authored `div { position: relative }` and a margin and border on `html` can't move the chrome's document coordinate plane; it now asserts the root's box sits at the document origin. Refs #5475
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_aimed_comment_keeps_its_place_with_on_me_openasserts that Leaf's interface root (.lf-chrome) staysposition: static, so an authoreddiv { position: relative }can't capture its coordinate plane. #5228 deliberately made that rootposition: absoluteat the document origin, at the largest z-index, ashtml's last child (browser/base.css,:root > .lf-chrome), so the assertion fails on main for both widths even though the plane hasn't moved.The test now reads what it protects: the root's box, plus the scroll offset, sits at
[0, 0]while the page sets a margin and border onhtmland positions everydiv. The root and bodystaticassertions and the composer placement checks are unchanged. No product code changes.tests/browser/test_render_aim.py::test_an_aimed_comment_keeps_its_place_with_on_me_open[900]and[1200]failed on main and pass with this change.Refs #5475 — automated triage