Skip to content

[css-ui-4][user-select] user-select:all and contenteditable #231

@yoichio

Description

@yoichio

https://drafts.csswg.org/css-ui-4/#propdef-user-select

if we have
<div contenteditable style="user-select:all;">foobar</div>,
how focus and caret should work?

Can user put a caret inside the text or not?
If can, shift+arrow still selects all? It may be annoying.

For now, Firefox supports as -moz-user-select:all but it behaves very weird:
user can put a caret only on the head of text and can input characters but can't move caret.

Chrome starts to support -webkit-user-select:all in the canary channel but user can't focus because Chrome interprets user-select:all as user can't put focus and extent into the element.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions