- From: Stephen Chenney via GitHub <sysbot+gh@w3.org>
- Date: Sat, 07 Dec 2024 13:38:51 +0000
- To: public-css-archive@w3.org
schenney-chromium has just created a new issue for https://github.com/w3c/csswg-drafts: == [CSS-UI] Where should cursor-shape apply? == The cursor-shape property sets the shape of a caret, which addresses a reasonably common use case for text editing by allowing terminal-like styling for editable text. But it makes little sense for carets used in other situations, particularly caret-based-navigation. The spec relies on font metrics and text shaping results to determine the size of a block caret and the width of an underscore, and these things are only available in text (or could come from the root). Consider in particular this result for a chrome test with an image in content editable. https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/platform/mac/editing/pasteboard/copy-standalone-image-expected.png I propose the spec be updated to limit caret-shape to "editable elements" as defined for `user-select`. Even better, define all the caret properties as "must apply" to "editable elements" and may apply to other carets (like navigation or some future thing). The example above of an image would presumably fall back to "no next character". Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11335 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 7 December 2024 13:38:52 UTC