@@ -413,7 +413,7 @@ Omitted values are set to their initial values.
413
413
414
414
<pre class='propdef'>
415
415
Name : user-select
416
- Value : auto | text | none | element | all
416
+ Value : auto | text | none | contain | all
417
417
Initial : auto
418
418
Inherited : no
419
419
Applies to : all elements
@@ -431,7 +431,7 @@ Omitted values are set to their initial values.
431
431
except:
432
432
<ol>
433
433
<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 ''
435
435
regardless of the specified value
436
436
<li> when the specified value is ''user-select/auto'' ,
437
437
which computes one of the other values as defined below
@@ -455,7 +455,7 @@ Omitted values are set to their initial values.
455
455
<dd> The computed value of ''user-select/auto'' is determined as follows:
456
456
<ul>
457
457
<li> If the element is an <a>editable element</a> ,
458
- the computed value is ''element ''
458
+ the computed value is ''contain ''
459
459
<li> Otherwise,
460
460
if the computed value of 'user-select' on the parent of this element is ''all'' ,
461
461
the computed value is ''all''
@@ -469,7 +469,7 @@ Omitted values are set to their initial values.
469
469
whose computed value depends on the parent element
470
470
makes it possible to create what is effectively selective inheritance.
471
471
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.
473
473
474
474
<dt> <dfn>text</dfn>
475
475
<dd> The element imposes no constraint on the selection.
@@ -539,7 +539,7 @@ Omitted values are set to their initial values.
539
539
that would hamper usability
540
540
or violate common user expectations.
541
541
542
- <dt> <dfn>element </dfn>
542
+ <dt> <dfn>contain </dfn>
543
543
<dd> UAs must not allow a selection which is started in this element
544
544
to be extended outside of this element.
545
545
@@ -552,12 +552,12 @@ Omitted values are set to their initial values.
552
552
553
553
Note: At the time of writing, experimental implementations behave differently from eachother
554
554
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 ''
556
556
by trying to select into a <{textarea}> or a contenteditable element.
557
557
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> .
561
561
562
562
<dt> <dfn>all</dfn>
563
563
<dd> The content of the element must be selected atomically:
0 commit comments