-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathcss-ui.json
882 lines (882 loc) · 37.9 KB
/
css-ui.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
{
"spec": {
"title": "CSS Basic User Interface Module Level 4",
"url": "https://drafts.csswg.org/css-ui-4/"
},
"properties": [
{
"name": "outline",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-outline",
"value": "<'outline-width'> || <'outline-style'> || <'outline-color'>",
"initial": "see individual properties",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"animationType": "see individual properties",
"canonicalOrder": "per grammar",
"styleDeclaration": [
"outline"
]
},
{
"name": "outline-width",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-outline-width",
"value": "<line-width>",
"initial": "medium",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "absolute length, snapped as a border width; 0 if the outline style is none.",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"styleDeclaration": [
"outline-width",
"outlineWidth"
]
},
{
"name": "outline-style",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-outline-style",
"value": "auto | <outline-line-style>",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"styleDeclaration": [
"outline-style",
"outlineStyle"
]
},
{
"name": "outline-color",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-outline-color",
"value": "auto | <color> | <image-1D>",
"initial": "auto",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see below",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"values": [
{
"name": "auto",
"prose": "When outline-style is auto, outline-color: auto computes to auto and represents the accent color. Otherwise, outline-color: auto computes to currentColor.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-outline-color-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"outline-color",
"outlineColor"
]
},
{
"name": "outline-offset",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-outline-offset",
"value": "<length>",
"initial": "0",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "absolute length",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"styleDeclaration": [
"outline-offset",
"outlineOffset"
]
},
{
"name": "resize",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-resize",
"value": "none | both | horizontal | vertical | block | inline",
"initial": "none",
"appliesTo": "elements that are scroll containers and optionally replaced elements such as images, videos, and iframes",
"inherited": "no",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"styleDeclaration": [
"resize"
]
},
{
"name": "cursor",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-cursor",
"value": "[ [ <url> | <url-set> ] [<x> <y>]? ]#? [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | grab | grabbing | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out ]",
"initial": "auto",
"appliesTo": "all elements",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "as specified, except with any relative URLs converted to absolute",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "<url-set>",
"prose": "<url-set> is a limited version of image-set(), where the <image> sub-production is restricted to <url> only.",
"href": "https://drafts.csswg.org/css-ui-4/#typedef-cursor-url-set",
"type": "type"
},
{
"name": "auto",
"prose": "The UA determines the cursor to display based on the current context. Specifically, auto behaves as text over selectable text or editable elements, and default otherwise.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-auto",
"type": "value",
"value": "auto"
},
{
"name": "default",
"prose": "The platform-dependent default cursor. Often rendered as an arrow.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-default",
"type": "value",
"value": "default"
},
{
"name": "none",
"prose": "No cursor is rendered for the element.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-none",
"type": "value",
"value": "none"
},
{
"name": "context-menu",
"prose": "A context menu is available for the object under the cursor. Often rendered as an arrow with a small menu-like graphic next to it.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-context-menu",
"type": "value",
"value": "context-menu"
},
{
"name": "help",
"prose": "Help is available for the object under the cursor. Often rendered as a question mark or a balloon.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-help",
"type": "value",
"value": "help"
},
{
"name": "pointer",
"prose": "The cursor is a pointer that indicates a link. Often rendered as the backside of a hand with the index finger extended. Unless otherwise specified, UAs must apply cursor: pointer to hyperlinks for all supported document formats via the UA stylesheet, using a normal (i.e. not !important) declaration. Authors should use pointer on links and may use it on other interactive elements.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-pointer",
"type": "value",
"value": "pointer"
},
{
"name": "progress",
"prose": "A progress indicator. The program is performing some processing, but is different from wait in that the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-progress",
"type": "value",
"value": "progress"
},
{
"name": "wait",
"prose": "Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-wait",
"type": "value",
"value": "wait"
},
{
"name": "cell",
"prose": "Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-cell",
"type": "value",
"value": "cell"
},
{
"name": "crosshair",
"prose": "A simple crosshair (e.g., short line segments resembling a \"+\" sign). Often used to indicate a two dimensional bitmap selection mode.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-crosshair",
"type": "value",
"value": "crosshair"
},
{
"name": "text",
"prose": "Indicates text that may be selected. Often rendered as an I-beam. User agents must automatically display a vertical I-beam/cursor over elements with a horizontal writing mode, and a horizontal I-beam/cursor (e.g. same as the vertical-text keyword) over elements in a vertical writing mode. Additionally, user agents may take transforms (see [CSS-TRANSFORMS-1]) or other visual effects such as text on a path (See SVG 2 § 11.8 Text on a path), when choosing between the horizontal or vertical text cursor, and may display any angle of I-beam/cursor for text that is rendered at any particular angle.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-text",
"type": "value",
"value": "text"
},
{
"name": "vertical-text",
"prose": "Indicates vertical text that may be selected. Often rendered as a horizontal I-beam.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-vertical-text",
"type": "value",
"value": "vertical-text"
},
{
"name": "alias",
"prose": "Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-alias",
"type": "value",
"value": "alias"
},
{
"name": "copy",
"prose": "Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-copy",
"type": "value",
"value": "copy"
},
{
"name": "move",
"prose": "Indicates something is to be moved.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-move",
"type": "value",
"value": "move"
},
{
"name": "no-drop",
"prose": "Indicates that the dragged item cannot be dropped at the current cursor location. Often rendered as a hand or pointer with a small circle with a line through it.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-no-drop",
"type": "value",
"value": "no-drop"
},
{
"name": "not-allowed",
"prose": "Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-not-allowed",
"type": "value",
"value": "not-allowed"
},
{
"name": "grab",
"prose": "Indicates that something can be grabbed (dragged to be moved). Often rendered as the backside of an open hand.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-grab",
"type": "value",
"value": "grab"
},
{
"name": "grabbing",
"prose": "Indicates that something is being grabbed (dragged to be moved). Often rendered as the backside of a hand with fingers closed mostly out of view.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-grabbing",
"type": "value",
"value": "grabbing"
},
{
"name": "e-resize",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-e-resize",
"type": "value",
"value": "e-resize"
},
{
"name": "n-resize",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-n-resize",
"type": "value",
"value": "n-resize"
},
{
"name": "ne-resize",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-ne-resize",
"type": "value",
"value": "ne-resize"
},
{
"name": "nw-resize",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-nw-resize",
"type": "value",
"value": "nw-resize"
},
{
"name": "s-resize",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-s-resize",
"type": "value",
"value": "s-resize"
},
{
"name": "se-resize",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-se-resize",
"type": "value",
"value": "se-resize"
},
{
"name": "sw-resize",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-sw-resize",
"type": "value",
"value": "sw-resize"
},
{
"name": "w-resize",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-w-resize",
"type": "value",
"value": "w-resize"
},
{
"name": "ew-resize",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-ew-resize",
"type": "value",
"value": "ew-resize"
},
{
"name": "ns-resize",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-ns-resize",
"type": "value",
"value": "ns-resize"
},
{
"name": "nesw-resize",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-nesw-resize",
"type": "value",
"value": "nesw-resize"
},
{
"name": "nwse-resize",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-nwse-resize",
"type": "value",
"value": "nwse-resize"
},
{
"name": "col-resize",
"prose": "Indicates that the item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-col-resize",
"type": "value",
"value": "col-resize"
},
{
"name": "row-resize",
"prose": "Indicates that the item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-row-resize",
"type": "value",
"value": "row-resize"
},
{
"name": "all-scroll",
"prose": "Indicates that something can be scrolled in any direction. Often rendered as arrows pointing up, down, left, and right with a dot in the middle.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-all-scroll",
"type": "value",
"value": "all-scroll"
},
{
"name": "zoom-in",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-zoom-in",
"type": "value",
"value": "zoom-in"
},
{
"name": "zoom-out",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-zoom-out",
"type": "value",
"value": "zoom-out"
}
],
"styleDeclaration": [
"cursor"
]
},
{
"name": "caret-color",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-caret-color",
"value": "auto | <color>",
"initial": "auto",
"appliesTo": "all elements",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "The computed value for auto is auto. For <color> values, see CSS Color 4 § 14. Resolving <color> Values.",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"styleDeclaration": [
"caret-color",
"caretColor"
]
},
{
"name": "caret-animation",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-caret-animation",
"value": "auto | manual",
"initial": "auto",
"appliesTo": "elements that accept input",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "The UA determines how the caret should be animated, if at all, as well as the speed of any such animation. It should match platform conventions and settings, and may be adjusted based on context.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-caret-animation-auto",
"type": "value",
"value": "auto"
},
{
"name": "manual",
"prose": "The UA must not animate the caret.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-caret-animation-manual",
"type": "value",
"value": "manual"
}
],
"styleDeclaration": [
"caret-animation",
"caretAnimation"
]
},
{
"name": "caret-shape",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-caret-shape",
"value": "auto | bar | block | underscore",
"initial": "auto",
"appliesTo": "elements that accept input",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"values": [
{
"name": "auto",
"prose": "The UA determines the shape of the caret. It should match platform conventions, and may be adjusted based on context. For example, if a UA switches between insert mode and overtype mode when the user presses the insert key on their keyboard, it may show a bar caret in insert mode, and a block caret in overtype mode.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-caret-shape-auto",
"type": "value",
"value": "auto"
},
{
"name": "bar",
"prose": "The UA must render the text insertion caret as a thin bar placed at the insertion point. This means it is between, before, or after characters, not over them. It should be perpendicular to the inline progression direction, although UAs may render it slanted when inserting italic or oblique text.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-caret-shape-bar",
"type": "value",
"value": "bar"
},
{
"name": "block",
"prose": "The UA must render the text insertion caret as a rectangle overlapping the next visible character following the insertion point. If there is no visible character after the insertion point, the UA must render the caret after the last visible character. UAs may render it as a slanted rectangle when inserting italic or oblique text.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-caret-shape-block",
"type": "value",
"value": "block"
},
{
"name": "underscore",
"prose": "The UA must render the text insertion caret as a thin line under (as defined in [CSS-WRITING-MODES-3] the next visible character following the insertion point. If there is no visible character after the insertion point, the UA must render the caret after the last visible character.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-caret-shape-underscore",
"type": "value",
"value": "underscore"
}
],
"styleDeclaration": [
"caret-shape",
"caretShape"
]
},
{
"name": "caret",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-caret",
"value": "<'caret-color'> || <'caret-animation'> || <'caret-shape'>",
"initial": "auto",
"appliesTo": "elements that accept input",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "see individual properties",
"animationType": "see individual properties",
"canonicalOrder": "per grammar",
"styleDeclaration": [
"caret"
]
},
{
"name": "nav-up",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-nav-up",
"value": "auto | <id> [ current | root | <target-name> ]?",
"initial": "auto",
"appliesTo": "all enabled elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"styleDeclaration": [
"nav-up",
"navUp"
]
},
{
"name": "nav-right",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-nav-right",
"value": "auto | <id> [ current | root | <target-name> ]?",
"initial": "auto",
"appliesTo": "all enabled elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"styleDeclaration": [
"nav-right",
"navRight"
]
},
{
"name": "nav-down",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-nav-down",
"value": "auto | <id> [ current | root | <target-name> ]?",
"initial": "auto",
"appliesTo": "all enabled elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"styleDeclaration": [
"nav-down",
"navDown"
]
},
{
"name": "nav-left",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-nav-left",
"value": "auto | <id> [ current | root | <target-name> ]?",
"initial": "auto",
"appliesTo": "all enabled elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"styleDeclaration": [
"nav-left",
"navLeft"
]
},
{
"name": "user-select",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-user-select",
"value": "auto | text | none | contain | all",
"initial": "auto",
"appliesTo": "all elements, and optionally to the ::before and ::after pseudo-elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "The used value of auto is determined as follows: On the ::before and ::after pseudo-elements, the used value is none If the element is an editable element, the used value is contain Otherwise, if the used value of user-select on the parent of this element is all, the used value is all Otherwise, if the used value of user-select on the parent of this element is none, the used value is none Otherwise, the used value is text",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-user-select-auto",
"type": "value",
"value": "auto"
},
{
"name": "text",
"prose": "The element imposes no constraint on the selection.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-user-select-text",
"type": "value",
"value": "text"
},
{
"name": "none",
"prose": "The UA must not allow selections to be started in this element. A selection started outside of this element must not end in this element. If the user attempts to create such a selection, the UA must instead end the selection range at the element boundary. However, if this element has descendants on which the used value of user-select is not none, selections that start and end within these descendants are allowed. The UA must allow selections to extend across this element, and must exclude this element from such a selection. An exception is made for UAs which do not support multiple ranges per selection, and they may include this element. If the element has descendants on which the used value of user-select is not none, these descendants must be included in a selection extending across the element. This specification makes no normative requirement about the behavior of the clipboard. However, UAs are encouraged to keep the visual selection consistent with what would get copied to the clipboard when copying. Copying text that does not appear to be selected, or vice versa, is highly confusing to users. Attempting to start a selection in an element where user-select is none, such as by clicking in it or starting a drag in it, must not cause a pre-existing selection to become unselected or to be affected in any way. As user-select is a UI convenience mechanism, not a copy protection mechanism, the UA may provide an alternative way for the user to explicitly select the text even when user-select is none.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-user-select-none",
"type": "value",
"value": "none"
},
{
"name": "contain",
"prose": "UAs must not allow a selection which is started in this element to be extended outside of this element. A selection started outside of this element must not end in this element. If the user attempts to create such a selection, the UA must instead end the selection range at the element boundary. The UA must allow selections to extend across this element, and such selections must include the content of the element.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-user-select-contain",
"type": "value",
"value": "contain"
},
{
"name": "all",
"prose": "The content of the element must be selected atomically: If a selection would contain part of the element, then the selection must contain the entire element including all its descendants. If the element is selected and the used value of user-select on its parent is all, then the parent must be included in the selection, recursively. If this element has descendants on which the used value of user-select is not all and if a selection is entirely contained in these descendants, then the selection is not extended to include this whole element.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-user-select-all",
"type": "value",
"value": "all"
}
],
"styleDeclaration": [
"user-select",
"userSelect"
]
},
{
"name": "pointer-events",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-pointer-events",
"value": "auto | none",
"initial": "auto",
"appliesTo": "all elements",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "auto",
"prose": "Hit-testing occurs normally.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-pointer-events-auto",
"type": "value",
"value": "auto"
},
{
"name": "none",
"prose": "Hit-testing acts as if the boxes generated by the element (see [CSS-DISPLAY-3]) were not there, effectively causing the element behind the pointer-events: none element to become the target of hit-testing-based events instead. The statement above needs to be qualified; for some purposes, hit-testing continues to take the element into account. For instance, clicking and dragging to start a text selection will continue to work as usual. What is the precise set of things for which hit-testing is affected by pointer-events?",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-pointer-events-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"pointer-events",
"pointerEvents"
]
},
{
"name": "accent-color",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-accent-color",
"value": "auto | <color>",
"initial": "auto",
"appliesTo": "all elements",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "the keyword auto or a computed color",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "auto",
"prose": "Represents a UA-chosen color, which should match the accent color of the platform, if any.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-accent-color-auto",
"type": "value",
"value": "auto"
},
{
"name": "<color>",
"prose": "Specifies the color to be used as the accent color.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-accent-color-color",
"type": "value",
"value": "<color>"
}
],
"styleDeclaration": [
"accent-color",
"accentColor"
]
},
{
"name": "appearance",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-appearance",
"value": "none | auto | base | <compat-auto> | <compat-special>",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "none",
"prose": "The element is rendered following the usual rules of CSS. Replaced elements other than widgets are not affected by this and remain replaced elements. Widgets must not have their native appearance, and instead must have their primitive appearance. See § 7.2.2 Effects of appearance on Decorative Aspects of Elements and § 7.2.3 Effects of appearance on Semantic Aspects of Elements for details.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-none",
"type": "value",
"value": "none"
},
{
"name": "auto",
"prose": "Elements representing widgets should have the native appearance of that widget, if the properties that disable native appearance for widgets are not in effect. See § 7.2.1 Properties Disabling Native Appearance. The host language is responsible for defining which elements represent which widgets. Elements other than widgets must be rendered as for none.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-auto",
"type": "value",
"value": "auto"
},
{
"name": "base",
"prose": "The effect of base depends on the element it is applied to:",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-base",
"type": "value",
"value": "base"
},
{
"name": "<compat-auto>",
"value": "searchfield | textarea | checkbox | radio | menulist | listbox | meter | progress-bar | button",
"href": "https://drafts.csswg.org/css-ui-4/#typedef-appearance-compat-auto",
"type": "type"
},
{
"name": "searchfield",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-searchfield",
"type": "value",
"value": "searchfield"
},
{
"name": "textarea",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-textarea",
"type": "value",
"value": "textarea"
},
{
"name": "checkbox",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-checkbox",
"type": "value",
"value": "checkbox"
},
{
"name": "radio",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-radio",
"type": "value",
"value": "radio"
},
{
"name": "menulist",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-menulist",
"type": "value",
"value": "menulist"
},
{
"name": "listbox",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-listbox",
"type": "value",
"value": "listbox"
},
{
"name": "meter",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-meter",
"type": "value",
"value": "meter"
},
{
"name": "progress-bar",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-progress-bar",
"type": "value",
"value": "progress-bar"
},
{
"name": "button",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-button",
"type": "value",
"value": "button"
},
{
"name": "<compat-special>",
"value": "textfield | menulist-button",
"href": "https://drafts.csswg.org/css-ui-4/#typedef-appearance-compat-special",
"type": "type"
},
{
"name": "textfield",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-textfield",
"type": "value",
"value": "textfield"
},
{
"name": "menulist-button",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-menulist-button",
"type": "value",
"value": "menulist-button"
}
],
"styleDeclaration": [
"appearance"
]
},
{
"name": "field-sizing",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-field-sizing",
"value": "fixed | content",
"initial": "fixed",
"appliesTo": "elements with default preferred size",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "fixed",
"prose": "For element with default preferred size, the UA must set the intrinsic size to the default preferred size defined by the host language for that element. Otherwise, the UA must behave the same as content.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-field-sizing-fixed",
"type": "value",
"value": "fixed"
},
{
"name": "content",
"prose": "The UA must determine the element’s intrinsic size based on its content, and must ignore any default preferred size defined by the host language for that element. If the element is an element with default preferred size and is listed in compressible replaced elements, the UA must stop treating the element as a replaced element for min-content contribution.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-field-sizing-content",
"type": "value",
"value": "content"
}
],
"styleDeclaration": [
"field-sizing",
"fieldSizing"
]
},
{
"name": "input-security",
"href": "https://drafts.csswg.org/css-ui-4/#propdef-input-security",
"value": "auto | none",
"initial": "auto",
"appliesTo": "sensitive text inputs",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "none",
"prose": "The UA must not obscure the text in the control, so that it can be read by the user.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-input-security-none",
"type": "value",
"value": "none"
},
{
"name": "auto",
"prose": "The UA should obscure the text in the control, so that it cannot be read by the user.",
"href": "https://drafts.csswg.org/css-ui-4/#valdef-input-security-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"input-security",
"inputSecurity"
]
},
{
"name": "-webkit-user-select",
"href": "https://drafts.csswg.org/css-ui-4/#propdef--webkit-user-select",
"styleDeclaration": [
"-webkit-user-select",
"WebkitUserSelect",
"webkitUserSelect"
]
},
{
"name": "-webkit-appearance",
"href": "https://drafts.csswg.org/css-ui-4/#propdef--webkit-appearance",
"styleDeclaration": [
"-webkit-appearance",
"WebkitAppearance",
"webkitAppearance"
]
}
],
"atrules": [],
"selectors": [],
"values": [
{
"name": "<outline-line-style>",
"prose": "<outline-line-style> accepts the same values as <line-style> (CSS Backgrounds 3 § 3.2 Line Patterns: the border-style properties) with the same meaning, except that hidden is not a legal outline style. In addition, the outline-style property accepts the value auto.",
"href": "https://drafts.csswg.org/css-ui-4/#typedef-outline-line-style",
"type": "type"
},
{
"name": "<id>",
"prose": "The <id> value is an ID selector [SELECT]. In response to directional navigation input corresponding to the property, the focus is navigated to the first element in tree order matching the selector. If this refers to the currently focused element, the directional navigation input respective to the nav- property is ignored — there is no need to refocus the same element. If no element matches the selector, the user agent automatically determines which element to navigate the focus to. If the focus is navigated to an element that was not otherwise focusable, it becomes focusable only as the result of this directional navigation, and the :focus pseudo-class matches the element while it is focused as such.",
"href": "https://drafts.csswg.org/css-ui-4/#typedef-id",
"type": "type"
},
{
"name": "<target-name>",
"prose": "The <target-name> parameter indicates the target frame for the focus navigation. It is a <string> and it MUST NOT start with the underscore \"_\" character. Error handling: if it does start with an underscore, \"_parent\" navigates to the parent frame, \"_root\" is treated as root, and other values navigate to a frame by that name if it exists. If the specified target frame does not exist, the parameter will be treated as the keyword current, which means to simply use the frame that the element is in. The keyword root indicates that the user agent should target the full window.",
"href": "https://drafts.csswg.org/css-ui-4/#typedef-target-name",
"type": "type"
}
]
}