Skip to content

Browser tests that read a page's end, scroll range or landing fail since #7188 added room below the page's end #7240

Done

Description

@leaf-agent

#7188 (813d3262b, "Give a document's end room to rise to the window's top") broke about 35 browser tests beyond the three #7212 tracked and #7213 fixed. ci run 45748435239 on 3a92fb4a42da shows the failures (38 failed, 1 error). Every push run between #7188 landing and that one was cancelled by a newer push, so this is the first completed main run to carry them. Each test I could run locally passes on #7188's parent 14ba0041c and fails on 813d3262b with the same message as CI. test_the_document_holds_no_room_for_the_chrome_on_screen_or_paper also still fails on current main 6387dfbfd.

Most of the failures read a position, a scroll range or a page end that the new room below the page's end moves. For example, test_the_document_holds_no_room_for_the_chrome_on_screen_or_paper now measures foot: 708.5, which is the end room, and test_a_stuck_sidebar_track_keeps_its_place_to_the_page_end reads end: -416.5. The maintainer chose #7188's room, so tests/AGENTS.md, Failing tests, weighs each test against that intent. #7213 shows that both outcomes occur. scrollsAlone in reading-place.js was a runtime defect the room exposed, because <html> now has a scroll range. The diff-evidence test only needed a stale setup updated. Waits that time out after 120 s (test_on_panel.py travel, test_panes.py wheel, the obligation walk) may be runtime defects of the same kind, since a landing or bound that the runtime computes may now never settle.

Cause of a failure tracked in #7237.

Failing tests, classified against #7188 and its parent

Pass on 14ba0041c, fail on 813d3262b (local Chromium/Firefox/WebKit):

  • tests/browser/test_render_pages.py::test_the_document_holds_no_room_for_the_chrome_on_screen_or_paper (also fails on 6387dfbfd)
  • tests/browser/startup/test_presentation.py::test_the_document_is_readable_before_runtime_at_its_authored_position (4 cases, 968.77 == 900 ± 1)
  • tests/browser/test_native_document_layout.py::test_a_stuck_sidebar_track_keeps_its_place_to_the_page_end (firefox cases; the chromium cases hit a local node subprocess error on both commits)
  • tests/browser/widgets/test_contents_and_glosses.py::test_the_lens_follows_the_scroll_in_every_engine (3 engines)
  • tests/browser/navigation/test_on_panel.py::test_an_idle_m_arrival_paints_in_its_first_frame[layout_clamp]
  • tests/browser/navigation/test_on_panel.py::test_a_tally_counts_its_regions_obligations_and_walks_them
  • tests/browser/navigation/test_on_panel.py::test_travel_puts_away_a_panel_view_standing_over_where_it_lands (timeout)
  • tests/browser/navigation/test_on_panel.py::test_travel_reads_the_landing_through_every_region_it_scrolls (timeout)
  • tests/browser/navigation/test_on_panel.py::test_on_me_stays_over_only_the_items_it_lists (timeout)
  • tests/browser/navigation/test_obligation_walk.py::test_the_obligation_walk_measures_from_chrome_only_where_the_chrome_holds_an_obligation (timeout)
  • tests/browser/navigation/test_panes.py::test_a_wheel_in_a_box_is_no_choice_of_the_page_around_it (auto, contain; timeout)
  • tests/browser/navigation/test_comment_marks.py::test_a_commented_block_says_so_to_a_screen_user
  • tests/browser/navigation/test_threads.py::test_back_and_forward_show_the_thread_each_entry_names (2 engines)
  • tests/browser/threads/test_navigation.py::test_back_reopens_the_thread_its_departure_put_away (2 cases)
  • tests/browser/threads/test_media.py::test_a_box_held_at_the_window_s_top_hangs_its_pictures_inside_the_window (drawn, pasted)
  • tests/browser/margin/test_card_reply.py::test_an_agent_reply_leaves_the_reply_being_typed_where_it_stands
  • tests/browser/margin/test_card_reply.py::test_a_growing_draft_over_its_words_holds_the_reply_s_foot
  • tests/browser/margin/test_card_reply.py::test_a_send_keeps_the_edge_its_card_holds[size1-press]
  • tests/browser/drafts/test_draft_editing.py::test_opening_a_visible_line_in_a_long_draft_preserves_the_reading_position[document-markdown]
  • tests/browser/drafts/test_draft_editing.py::test_pointer_cancel_returns_draft_room_without_delaying_reading_or_focus
  • tests/browser/test_render_aim.py::test_a_text_comment_chooses_above_when_the_page_has_more_room_there

Failed in CI but could not be classified locally. In the triage sandbox these hit a node --import ./tests/runtime/dom.mjs subprocess error on both commits:

  • tests/browser/test_render_send_placement.py::test_send_grows_thread_around_the_words[size2-0.12-…-browser]
  • tests/browser/test_render_floating_panel.py::test_an_arrival_the_opening_view_will_cover_puts_it_away
  • tests/browser/test_public_api.py::test_a_package_reads_the_public_api_and_nothing_behind_it (CI error: ResizeObserver loop completed with undelivered notifications)

Already fixed by #7213 (this run predates it): test_a_place_in_a_long_document_names_the_line_at_its_top and test_evidence_close_folds_room_but_retires_controls_immediately.

Reproduce in worktrees of 14ba0041c and 813d3262b:

uv run pytest -q -n 3 <node ids above>

Activity

  1. added
    tend-ci-cause
    on Nov 26, 2026
  2. leaf-agent commented on Nov 26, 2026

    @leaf-agent
    CollaboratorAuthor

    #7244 repairs every failure listed here except one. Each repaired test failed on main and passes on the branch locally (69 passed, test_deck.py included).

    • Product fix: the end room subtracted --lf-top-covered, which includes the root-header height a ResizeObserver writes. A header that changed height therefore resized the body inside that observer's pass, and the browser reported a ResizeObserver loop error (test_public_api). The room now subtracts only the CSS head room.
    • Foot-of-page tests (travel put-away, clamps, a card or box that fits only over its words) take the room away through one harness helper. With the room, the runtime correctly lands those destinations clear of the open view, which is Give a document's end room to rise to the window's top, and drop the deck's held height #7188's intent.
    • Coordinate readings (chrome room, body height, lens, tally, draft scrolls, comment note) now read the behaviour they protect rather than a place the room moved.

    The one left is test_a_stuck_sidebar_track_keeps_its_place_to_the_page_end. A sticky track can't stick past its aside, so the room carries it out of the window at the page's end. #7245 puts that choice to the maintainer, with a picture. #7244 closes this issue when it merges, and #7245 then owns the remaining test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions