Skip to content

Commit 37e0423

Browse files
committed
[css-ui-4] Add note on the interaction of user-select & editable content
1 parent d869c63 commit 37e0423

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

css-ui-4/Overview.bs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,14 @@ Omitted values are set to their initial values.
511511
If the element has descendants on which 'user-select' does not compute to ''user-select/none'',
512512
these descendants must be included in a selection extending across the element.
513513

514+
Note: ''user-select: none'' on a non-editable descendant of an editable element
515+
means that in addition to not being editable,
516+
that descendant is also not deletable,
517+
neither directly nor by attempting to include it in a broader selection
518+
and then deleting that selection.
519+
This matters for example in template-based editing,
520+
where an editable template may contain sections which must be preserved.
521+
514522
As 'user-select' is a UI convenience mechanism,
515523
not a copy protection mechanism,
516524
the UA may provide an alternative way for the user

0 commit comments

Comments
 (0)