Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CSS-UI] caret-shape: block/underscore and overflow #10289

Open
schenney-chromium opened this issue May 7, 2024 · 0 comments
Open

[CSS-UI] caret-shape: block/underscore and overflow #10289

schenney-chromium opened this issue May 7, 2024 · 0 comments
Labels
Async Resolution: Call For Consensus Resolution will be called after time limit expires

Comments

@schenney-chromium
Copy link
Contributor

The spec for caret-shape sensibly says that a caret at the end of a text run should paint to the right (in ltr, left in rtl) where the next character in a run would appear. But what should happen if there is no space to put the caret in the container at that location?

Options include:

  1. Clip the caret.
  2. Start a new line and put the caret on that line.
  3. Paint the caret as close as possible to the edge, even if it overlaps the last character in the run.
  4. Treat the caret as overflow and apply the overflow rules for the container.

Terminal programs on Mac and Linux, the things I can easily check, both exhibit behavior (2). There is no existing browser implementation other than maybe Opera (according to canIuse).

Igalia is considering a chromium implementation and this is a question that immediately comes to mind as a blocker.

@schenney-chromium schenney-chromium added the Async Resolution: Call For Consensus Resolution will be called after time limit expires label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Async Resolution: Call For Consensus Resolution will be called after time limit expires
Projects
None yet
Development

No branches or pull requests

1 participant