[csswg-drafts] [CSS-UI] caret-shape: block/underscore and zero width space (#12651)

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

== [CSS-UI] caret-shape: block/underscore and zero width space ==
The spec for [caret-shape](https://www.w3.org/TR/css-ui-4/#caret-shape) says for block caret shape "The UA must render the [insertion caret](https://drafts.csswg.org/css-ui/#insertion-caret) as a rectangle overlapping the next [visible character](https://drafts.csswg.org/css-ui/#visible-character) following the insertion point". 

The question is, what we do with the case of zero-width space? In Chromium, by default (bar shape), it displays a bar caret. I'd think that for caret-shape: block and caret-shape: underscore, we probably should display the caret with the width of 1px ( the width of bar shape), which is reflected in [this CL](https://chromium-review.googlesource.com/c/chromium/src/+/6841915) .

Please let me know what you think. And if this proposal is reasonable, I wonder if the spec needs a bit update? Thanks!

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


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

Received on Monday, 25 August 2025 13:52:07 UTC