[csswg-drafts] [CSS-UI] caret-shape: block/underscore and overflow (#10289)

schenney-chromium has just created a new issue for https://github.com/w3c/csswg-drafts:

== [CSS-UI] caret-shape: block/underscore and overflow ==
The spec for [caret-shape](https://www.w3.org/TR/css-ui-4/#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.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10289 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 7 May 2024 21:55:00 UTC