Skip to content

test_entering_the_column_or_go_to_restyles_no_cell_or_link_it_passes: entering restyles hundreds of nodes since #7457 ported lf-toc #7499

Done

Description

@leaf-agent

tests/browser/test_chrome_contracts.py::test_entering_the_column_or_go_to_restyles_no_cell_or_link_it_passes fails with {'20 rows': {'entering': 434, 'Go-to': 549}, '120 rows': {'entering': 534, 'Go-to': 649}}. The restyle count is meant to stay flat with the page's rows, and it now grows. #7457 ported lf-toc to an Effect UI component. This is a cost under root AGENTS.md, "Responsiveness", so the repair has to say whether the extra restyles are the port's light display: contents wrappers (compare #7487) or a probe that counts nodes the port added.

First failing run: 46092141658; every push run after it through 46099887165 also fails.

All of these fail on cd2495ac7 (current main when diagnosed) on the Tend runner, running each node id with uv run pytest -n 3. A bisect over main's first-parent commits put the first failing commit at the PR named in the title: each test passes at the commit before it and fails at it.

Cause of a failure tracked in #7387.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #7505 fixes this. The extra restyles are real, and they come from a selector rather than the port's display: contents wrappers or the probe. In #7457, the two toc.css rules that let the map's labels take the pointer became .lf-toc-labels a:not([data-lf-toc-off]). With a type and a :not() as its subject, the rule gives Chromium only a to narrow by. So setting data-lf-focus-within on main, or data-lf-go-to-active on body, restyled every link on the page: one per table row, the +100 in the report. The subject now names .lf-toc-link, the class every label link carries. That matches the same links, so nothing drawn changes. The test fails on main and passes on the branch, and the lf-toc label and reveal tests still pass. tend-land owns its CI and landing from here.

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