Skip to content

cursor not visible when x_position == 0 #8101

@warpdesign

Description

@warpdesign

Summary

When focusing a textarea in ladybird, when the cursor is at the beginning of an empty line, it won't be visible.

Operating system

macOS

Steps to reproduce

  1. Run ladybird and click to focus a textarea
  2. Press return to enter a new line

Expected behavior

The cursor should be visible at the beginning of the next line.

Actual behavior

The cursor is not visible: this is very disturbing because it gives the impression the user can't type or the textarea lost the focus.

URL for a reduced test case

N/A

HTML/SVG/etc. source for a reduced test case

<!DOCTYPE html>
<html>
<body>
<textarea>

Log output and (if possible) backtrace

N/A

Screenshots or screen recordings

Ladybird:

ladybird-cursor-invisible-newline.mov

Chrome:

chrome-cursor-visible-newline.mov

Build flags or config settings

No response

Contribute a patch?

  • I’ll contribute a patch for this myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions