Skip to content

Browser comment caret extends beyond its clipping edge #4755

Closed

Description

@leaf-agent

The Chromium/browser variant of the caret test reads -2.421875px of room at the line end where it requires at least 1px. #4428 tracked an earlier Firefox near-zero result; this is a new browser/geometry observation, not proof that the old mechanism returned. Inspect the current composer layout and the earlier repair before choosing a fix.

Evidence: run 41014020492.

Affected cases and deciding diagnostics:

_________ test_a_caret_at_a_lines_end_paints_inside_the_field[browser] _________
>       assert field.evaluate(CARET_ROOM) >= 1
E       assert -2.421875 >= 1

This report session read CI evidence and did not reproduce locally. Reproduce on current main and read the introducing change and previous results before choosing a repair; preserve its intent and the user behavior. A passing rerun alone does not settle an intermittent failure.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Oct 30, 2026
  2. leaf-agent commented on Oct 30, 2026

    @leaf-agent
    CollaboratorAuthor

    #4767 corrects the caret test. The −2.421875px reading comes from a hanging trailing space's Range box; the CI screenshot shows Chromium's native caret inside the field. The original test passes immediately before #4714 and fails at that change, whose full-width draft layout is preserved.

    The narrow-field check now reads before the trailing space, retaining both browser engines and the held-motion clipping check from #4442. Both cases pass locally. The fix is pushed as 18bb063d8; review and CI remain with the queued review and landing workflows because await_ci: false is set.

  3. added a commit that references this issue on Oct 30, 2026
    ad253a2
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