Skip to content

test: enter Capture area by key with the pointer on the words in the restyle test - #6814

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6813
Nov 23, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-6813

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_a_page_mode_restyles_only_what_the_pointer_is_over has failed on every run since #6788 (f014d63e1), with one style recalc of 601 elements against its cap of 171 (684 / 4). The test entered Capture area by clicking the row in the annotate menu, so the pointer rested wherever that row happened to stand once the menu closed. #6788 changed the menu's rows and moved the Capture row 30 px lower (y 716 → 746). That spot is in the test page's <section>, in the gap between two paragraphs, not on a paragraph. When the pointer rests on a box like that, Chromium restyles everything the box holds. The header of browser/styles/components/integration.css already states this cost. Capture area itself behaves as before.

The test now focuses the row and presses Enter, with the pointer resting on the words the way it does for each mode before it. So it measures what the pointer is over again, not the menu's layout.

  • Bisected on CI's failing step: 874e527fc passes and f014d63e1 fails, and each commit gave the same result on every run.
  • On current main, the test failed 3 of 3 runs before this change and passes 3 of 3 after it.
  • The test still catches a crosshair stated on every element: with :root[data-lf-region-capture] * { cursor: crosshair; } appended to integration.css, it fails at 694.

The run's other failure, test_the_reference_lists_each_of_the_panel_s_keys_once, was fixed by #6809 and passes on current main.

Refs #6813 — automated triage

…restyle test

test_a_page_mode_restyles_only_what_the_pointer_is_over entered Capture area by
clicking its row in the annotate menu, so the pointer rested wherever that row
stood once the menu closed. #6788 (f014d63) changed the menu's rows, which
moved the Capture row 30 px lower, from over a paragraph to the section's gap
between two paragraphs. There Chromium restyles everything the hovered box
holds (integration.css), 601 elements against a cap of 171, so the test failed
on every run since. The test now presses Enter on the focused row with the
pointer resting on the words, as each mode before it does. Capture area's
behavior is unchanged; the test still fails (694) when the crosshair is stated
on every element.

Refs #6813
@leaf-agent
leaf-agent merged commit 24b1a53 into main Nov 23, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6813 branch November 23, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant