Skip to content

Text selection not drawn at correct y position when CSS line-height is set #47553

Closed

Description

@Psychpsyo

Describe the bug:
Selection rectangle gets drawn way too high up with a big line-height:
Image

To Reproduce:

<body style="line-height:100px">
Select me!

Platform:
I am on Linux, but I doubt that matters.

Activity

  1. added
    C-untriaged
    on Aug 26, 2026
  2. added
    C-has-manual-testcase
    and removed
    C-untriaged
    on Aug 26, 2026
  3. mrobinson commented on Aug 26, 2026

    @mrobinson
    Member

    I think this is a duplicate or similar issue to #36924. Either way, I suspect that we will fix both of these issues at once.

  4. added a commit that references this issue on Sep 16, 2026
    9773ece
  5. added a commit that references this issue on Oct 6, 2026
    39c52f1
  6. added a commit that references this issue on Oct 12, 2026
    59bc769
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

    A-layout/inlineA-layout/textC-has-manual-testcase

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions