Skip to content

Commit 3f1d9db

Browse files
committed
[css-ui-4] rename user-select: element to contain
1 parent 71d7fba commit 3f1d9db

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

css-ui-4/Overview.bs

+9-9
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ Omitted values are set to their initial values.
413413

414414
<pre class='propdef'>
415415
Name: user-select
416-
Value: auto | text | none | element | all
416+
Value: auto | text | none | contain | all
417417
Initial: auto
418418
Inherited: no
419419
Applies to: all elements
@@ -431,7 +431,7 @@ Omitted values are set to their initial values.
431431
except:
432432
<ol>
433433
<li>on <a>editable element</a>s
434-
where the computed value is always ''user-select/element''
434+
where the computed value is always ''user-select/contain''
435435
regardless of the specified value
436436
<li>when the specified value is ''user-select/auto'',
437437
which computes one of the other values as defined below
@@ -455,7 +455,7 @@ Omitted values are set to their initial values.
455455
<dd>The computed value of ''user-select/auto'' is determined as follows:
456456
<ul>
457457
<li>If the element is an <a>editable element</a>,
458-
the computed value is ''element''
458+
the computed value is ''contain''
459459
<li>Otherwise,
460460
if the computed value of 'user-select' on the parent of this element is ''all'',
461461
the computed value is ''all''
@@ -469,7 +469,7 @@ Omitted values are set to their initial values.
469469
whose computed value depends on the parent element
470470
makes it possible to create what is effectively selective inheritance.
471471
This was initially proposed by Microsoft in IE to introduce a behavior similar to inheritance
472-
except that the ''element'' value does not inherit.
472+
except that the ''contain'' value does not inherit.
473473

474474
<dt><dfn>text</dfn>
475475
<dd>The element imposes no constraint on the selection.
@@ -539,7 +539,7 @@ Omitted values are set to their initial values.
539539
that would hamper usability
540540
or violate common user expectations.
541541

542-
<dt><dfn>element</dfn>
542+
<dt><dfn>contain</dfn>
543543
<dd>UAs must not allow a selection which is started in this element
544544
to be extended outside of this element.
545545

@@ -552,12 +552,12 @@ Omitted values are set to their initial values.
552552

553553
Note: At the time of writing, experimental implementations behave differently from eachother
554554
about selections started outside and selections going into the element.
555-
The behavior can be observed even on browsers that do not explicitly support ''element''
555+
The behavior can be observed even on browsers that do not explicitly support ''contain''
556556
by trying to select into a <{textarea}> or a contenteditable element.
557557

558-
Issue: Not sure the name ''user-select:element'' is particularly clear
559-
about what this means.
560-
How about something like "contain" or "inside" instead?
558+
Note: This was initially introduced
559+
as an experimental feature in Internet Explorer,
560+
under the name <code>user-select: element</code>.
561561

562562
<dt><dfn>all</dfn>
563563
<dd>The content of the element must be selected atomically:

0 commit comments

Comments
 (0)