-
Notifications
You must be signed in to change notification settings - Fork 39
/
compatibility.bs
1073 lines (918 loc) · 38.2 KB
/
compatibility.bs
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
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<pre class="metadata">
Group: WHATWG
H1: Compatibility
Shortname: compat
Text Macro: TWITTER compatstandard
Text Macro: LATESTRD 2023-06
Abstract: This standard describes a collection of web platform features that web browsers need to support for compatibility with the de facto web.
Translation: ja https://triple-underscore.github.io/compat-ja.html
Indent: 2
Markup Shorthands: dfn yes
</pre>
<pre class="anchors">
urlPrefix: https://w3c.github.io/screen-orientation/;
type: interface
text: ScreenOrientation; url: #screenorientation-interface
type: dfn
text: current orientation angle; url: #dfn-current-orientation-angle
urlPrefix: https://www.w3.org/TR/CSS/; spec: CSS2
type: dfn
text: vendor prefix; url: #vendor-prefix
urlPrefix: https://drafts.csswg.org/mediaqueries-4/; spec: mediaqueries-4
type: dfn
text: media query; url: #media-query
text: media feature; url: #media-feature
text: resolution; url: #descdef-media-resolution
text: min-resolution; url: #descdef-media-resolution
text: max-resolution; url: #descdef-media-resolution
text: prefixes on range features; url: #mq-min-max
urlPrefix: https://www.w3.org/TR/2011/WD-css3-images-20110217/; spec: css3-images-20110217
type: dfn
text: linear-gradient; url: #ltlinear-gradient
text: radial-gradient; url: #ltradial-gradient
text: repeating-linear-gradient; url: #ltrepeating-linear-gradient
text: repeating-radial-gradient; url: #ltrepeating-radial-gradient
urlPrefix: https://drafts.csswg.org/css-backgrounds-4/
type: dfn
text: background-clip; url: #propdef-background-clip
urlPrefix: https://drafts.fxtf.org/css-masking-1/
type: dfn
text: clipping path; url: #clipping-path
urlPrefix: https://drafts.csswg.org/css-values-3/
type: dfn
text: dppx; url: #dppx
</pre>
<pre class="biblio">
{
"HTTP-SEMANTICS": {
"href": "https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html",
"title": "HTTP Semantics",
"authors": [ "R. Fielding", "M. Nottingham", "J. Reschke" ]
}
}
</pre>
<pre class=link-defaults>
spec:css-animations-1; type:property; text:animation-delay
spec:css-borders-4; type:property; text:box-shadow
spec:css-borders-4; type:property; text:border-radius
spec:css-borders-4; type:property; text:border-bottom-left-radius
spec:css-borders-4; type:property; text:border-bottom-right-radius
spec:css-borders-4; type:property; text:border-top-left-radius
spec:css-borders-4; type:property; text:border-top-right-radius
spec:css-conditional-3; type:at-rule; text:@media
spec:css-display-3; type:value; for:display; text:flex
spec:css-flexbox-1; type:value; text:inline-flex
spec:css-syntax-3; type:dfn; text:invalid
spec:filter-effects-1; type:property; text:filter
spec:infra; type:dfn; text:user agent
spec:svg2; type:dfn; text:fill
spec:svg2; type:dfn; text:stroke
</pre>
<!-- Commented out until we know what the heck to put here:
<h2 id='goals'>Goals</h2> -->
<h2 id='introduction'>Introduction</h2>
<em>This section is non-normative.</em>
There exists an increasingly large corpus of web content that depends on web browsers supporting a
number of specific vendor CSS properties and DOM APIs for functionality or layout.
This holds especially true for mobile-optimized web content, which is highly dependent on
<code>-webkit-</code>-prefixed properties.
This specification aims to describe the minimal set of <code>-webkit-</code>-prefixed CSS properties
and DOM APIs that user agents are required to support for web compatibility, which aren't
specified elsewhere.
The HTTP <code>User-Agent</code> header field as found in major browsers today is also described.
<h2 id='conformance'>Conformance</h2>
All diagrams, examples, and notes in this specification are
non-normative, as are all sections explicitly marked non-normative.
Everything else in this specification is normative.
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in RFC 2119.
For readability, these words do not appear in all uppercase letters in this
specification. [[!RFC2119]]
Requirements phrased in the imperative as part of algorithms
(such as "strip any leading space characters" or "return false and
terminate these steps") are to be interpreted with the meaning of the
keyword ("must", "should", "may", etc.) used in introducing the
algorithm.
Conformance requirements phrased as algorithms or specific steps
may be implemented in any manner, so long as the end result is
equivalent. (In particular, the algorithms defined in this
specification are intended to be easy to follow, and not intended to
be performant.)
<h2 id="css-compat-section">CSS Compatibility</h2>
<h3 id="css-at-rules">CSS At-rules</h3>
The following <code>-webkit-</code> <a>vendor prefixed</a> [=at-rules=] must be supported as aliases
of the corresponding unprefixed [=at-rules=]:
<table>
<thead>
<tr>
<th><code>-webkit-</code> prefixed at-rule alias</th>
<th>unprefixed at-rule</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><dfn at-rule>@-webkit-keyframes</dfn></code></td>
<td><code><a>@keyframes</a></code></td>
</tr>
</tbody>
</table>
<h3 id="css-media-queries">CSS Media Queries</h3>
<h4 id="css-media-queries-webkit-device-pixel-ratio">
<code>'@media/-webkit-device-pixel-ratio'</code>
</h4>
<pre class='descdef mq'>
Name: '@media/-webkit-device-pixel-ratio'
Value: <<number>>
For: @media
Type: range
</pre>
<code>'@media/-webkit-device-pixel-ratio'</code> must be treated as an alias of the
<code><a>resolution</a></code> range type <a>media feature</a>, with its value interpreted as a
<a>dppx</a> unit.
The <code>min-</code> or <code>max-</code> <a>prefixes on range features</a> must not apply to
<code>'@media/-webkit-device-pixel-ratio'</code>, instead the following aliases must be used:
<table>
<thead>
<tr>
<th>legacy <code>-webkit-</code> prefixed range <a>media feature</a> alias</th>
<th>standard prefixed range <a>media feature</a></th>
</tr>
</thead>
<tbody>
<tr>
<td><code><dfn descriptor for="@media">-webkit-min-device-pixel-ratio</dfn></code></td>
<td><code><a>min-resolution</a></code></td>
</tr>
<tr>
<td><code><dfn descriptor for="@media">-webkit-max-device-pixel-ratio</dfn></code></td>
<td><code><a>max-resolution</a></code></td>
</tr>
</tbody>
</table>
<h4 id="css-media-queries-webkit-transform-3d">
<code>'@media/-webkit-transform-3d'</code>
</h4>
<pre class='descdef mq'>
Name: '@media/-webkit-transform-3d'
Value: <<mq-boolean>>
For: @media
Type: discrete
</pre>
The <code>'@media/-webkit-transform-3d'</code> <a>media feature</a> is used to query whether the
user agent supports CSS 3D transforms. [[css-transforms-1]]
If the user agent supports 3D transforms, the value will be 1. Otherwise the value is 0.
<h3 id="css-gradient-fns">CSS Gradient Functions</h3>
<!-- Uncomment if we ever add -webkit-gradient()
Both the [[css3-images-20110217]] draft <code>-webkit-</code> prefixed <<image>> gradient functions
and the 2008 <code>-webkit-gradient()</code> (<a href="https://webkit.org/blog/175/introducing-css-gradients/">blog post</a>, <a href="https://developer.apple.com/library/safari/documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Gradients/Gradient.html#//apple_ref/doc/uid/TP40008032-CH10-SW34">Safari developer documentation</a>) must be supported for compatibility.
-->
<h4 id="css-gradients-webkit-linear-gradient">
<code>''-webkit-linear-gradient()''</code>
</h4>
The <code><dfn export>-webkit-linear-gradient()</dfn></code> [=gradient function=] must be treated
as an alias of <a>linear-gradient</a> as defined in [[css3-images-20110217]].
<h4 id="css-gradients-webkit-radial-gradient">
<code>''-webkit-radial-gradient()''</code>
</h4>
The <code><dfn export>-webkit-radial-gradient()</dfn></code> [=gradient function=] must be treated
as an alias of <a>radial-gradient</a> as defined in [[css3-images-20110217]].
<h4 id="css-gradients-repeating-webkit-linear-gradient">
<code>''-webkit-repeating-linear-gradient()''</code>
</h4>
The <code><dfn export>-webkit-repeating-linear-gradient()</dfn></code> [=gradient function=] must be
treated as an alias of <a>repeating-linear-gradient</a> as defined in [[css3-images-20110217]].
<h4 id="css-gradients-repeating-webkit-radial-gradient">
<code>''-webkit-repeating-radial-gradient()''</code>
</h4>
The <code><dfn export>-webkit-repeating-radial-gradient()</dfn></code> [=gradient function=] must be
treated as an alias of <a>repeating-radial-gradient</a> as defined in [[css3-images-20110217]].
<!--
<h4 id="css-gradients-webkit-gradient">
<code>-webkit-gradient()</code>
</h4>
<div class="XXX">TODO</div> -->
<h3 id="css-properties">CSS Properties</h3>
<h4 id="css-simple-aliases">Legacy name aliases</h4>
The following <code>-webkit-</code> <a>vendor prefixed</a> properties must be supported as
<a lt="legacy name alias">legacy name aliases</a> of the corresponding unprefixed property:
<table>
<thead>
<tr>
<th><code>-webkit-</code> prefixed property alias</th>
<th>unprefixed property</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><dfn property>-webkit-align-items</dfn></code></td>
<td><code>'align-items'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-align-content</dfn></code></td>
<td><code>'align-content'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-align-self</dfn></code></td>
<td><code>'align-self'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-animation-name</dfn></code></td>
<td><code>'animation-name'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-animation-duration</dfn></code></td>
<td><code>'animation-duration'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-animation-timing-function</dfn></code></td>
<td><code>'animation-timing-function'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-animation-iteration-count</dfn></code></td>
<td><code>'animation-iteration-count'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-animation-direction</dfn></code></td>
<td><code>'animation-direction'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-animation-play-state</dfn></code></td>
<td><code>'animation-play-state'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-animation-delay</dfn></code></td>
<td><code>'animation-delay'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-animation-fill-mode</dfn></code></td>
<td><code>'animation-fill-mode'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-animation</dfn></code></td>
<td><code>'animation'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-backface-visibility</dfn></code></td>
<td><code>'backface-visibility'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-background-clip</dfn></code></td>
<td><code>'background-clip'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-background-origin</dfn></code></td>
<td><code>'background-origin'</code></td>
</tr>
<tr>
<td>
<code><dfn property>-webkit-background-size</dfn></code>
<p class="XXX">
Not really a [=legacy name alias=]. See
<a href="https://github.com/whatwg/compat/issues/28">issue #28</a>.
</p>
</td>
<td><code>'background-size'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-border-bottom-left-radius</dfn></code></td>
<td><code>'border-bottom-left-radius'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-border-bottom-right-radius</dfn></code></td>
<td><code>'border-bottom-right-radius'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-border-top-left-radius</dfn></code></td>
<td><code>'border-top-left-radius'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-border-top-right-radius</dfn></code></td>
<td><code>'border-top-right-radius'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-border-radius</dfn></code></td>
<td><code>'border-radius'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-box-shadow</dfn></code></td>
<td><code>'box-shadow'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-box-sizing</dfn></code></td>
<td><code>'box-sizing'</code></td>
</tr>
<tr>
<td><code><dfn property id="propdef--webkit-flex-propdef">-webkit-flex</dfn></code></td>
<td><code>'flex'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-flex-basis</dfn></code></td>
<td><code>'flex-basis'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-flex-direction</dfn></code></td>
<td><code>'flex-direction'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-flex-flow</dfn></code></td>
<td><code>'flex-flow'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-flex-grow</dfn></code></td>
<td><code>'flex-grow'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-flex-shrink</dfn></code></td>
<td><code>'flex-shrink'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-flex-wrap</dfn></code></td>
<td><code>'flex-wrap'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-filter</dfn></code></td>
<td><code>'filter'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-justify-content</dfn></code></td>
<td><code>'justify-content'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask</dfn></code></td>
<td><code>'mask'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-box-image</dfn></code></td>
<td><code>'mask-border'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-box-image-outset</dfn></code></td>
<td><code>'mask-border-outset'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-box-image-repeat</dfn></code></td>
<td><code>'mask-border-repeat'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-box-image-slice</dfn></code></td>
<td><code>'mask-border-slice'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-box-image-source</dfn></code></td>
<td><code>'mask-border-source'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-box-image-width</dfn></code></td>
<td><code>'mask-border-width'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-clip</dfn></code></td>
<td><code>'mask-clip'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-composite</dfn></code></td>
<td><code>'mask-composite'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-image</dfn></code></td>
<td><code>'mask-image'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-origin</dfn></code></td>
<td><code>'mask-origin'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-position</dfn></code></td>
<td><code>'mask-position'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-repeat</dfn></code></td>
<td><code>'mask-repeat'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-mask-size</dfn></code></td>
<td><code>'mask-size'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-order</dfn></code></td>
<td><code>'order'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-perspective</dfn></code></td>
<td><code>'perspective'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-perspective-origin</dfn></code></td>
<td><code>'perspective-origin'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-transform-origin</dfn></code></td>
<td><code>'transform-origin'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-transform-style</dfn></code></td>
<td><code>'transform-style'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-transform</dfn></code></td>
<td><code>'transform'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-transition-delay</dfn></code></td>
<td><code>'transition-delay'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-transition-duration</dfn></code></td>
<td><code>'transition-duration'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-transition-property</dfn></code></td>
<td><code>'transition-property'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-transition-timing-function</dfn></code></td>
<td><code>'transition-timing-function'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-transition</dfn></code></td>
<td><code>'transition'</code></td>
</tr>
</tbody>
</table>
<h4 id="css-prefixed-aliases">Prefixed legacy name aliases</h4>
The following <code>-webkit-</code> <a>vendor prefixed</a> properties must be supported as
<a lt="legacy name alias">legacy name aliases</a> of the corresponding unprefixed properties. If the
user agent does not ship the unprefixed equivalent, the <code>-webkit-</code> prefixed property must
be treated as an alias of the user agent's own vendor prefixed property.
<table>
<thead>
<tr>
<th><code>-webkit-</code> prefixed property alias</th>
<th>(vendor prefixed) property</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><dfn property>-webkit-text-size-adjust</dfn></code></td>
<td><code>(-prefix-)'text-size-adjust'</code></td>
</tr>
</tbody>
</table>
<div class="example" id="-moz-text-size-adjust-example">
For example, <code>-webkit-text-size-adjust</code> is
<a href="https://searchfox.org/mozilla-central/rev/7d379061bd56251df911728686c378c5820513d8/devtools/shared/css/generated/properties-db.js#2450-2453">
treated as an alias</a> of <code>-moz-text-size-adjust</code> in Firefox.
</div>
Note: As soon as each property is unprefixable it can be defined as a [=legacy name alias=].
<h4 id="css-non-aliased">Non-aliased vendor prefixed properties</h4>
Note: This section used to specify the '-webkit-appearance' property.
This is now defined in
<a href="https://drafts.csswg.org/css-ui/#appearance-switching">CSS Basic User Interface Module</a>.
<h4 id="css-property-mappings">Property mappings</h4>
The following <code>-webkit-</code> <a>vendor prefixed</a> properties must be supported as mappings
to the corresponding unprefixed property:
<table>
<thead>
<tr>
<th><code>-webkit-</code> prefixed property</th>
<th>unprefixed property</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><dfn property>-webkit-box-align</dfn></code></td>
<td><code>'align-items'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-box-flex</dfn></code></td>
<td><code>'flex-grow'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-box-ordinal-group</dfn></code></td>
<td><code>'order'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-box-orient</dfn></code></td>
<td><code>'flex-direction'</code></td>
</tr>
<tr>
<td><code><dfn property>-webkit-box-pack</dfn></code></td>
<td><code>'justify-content'</code></td>
</tr>
</tbody>
</table>
Issue(87): These definitions of <code>-webkit-box-*</code> are known to not be web compatible.
<h4 id="css-keyword-mappings">Keyword mappings</h4>
The following <code>-webkit-</code> <a>vendor prefixed</a> keywords must be supported as mappings to
the corresponding unprefixed keyword:
<table>
<thead>
<tr>
<th><code>-webkit-</code> prefixed keyword</th>
<th>unprefixed property keyword</th>
</tr>
</thead>
<tbody dfn-for="flex">
<tr>
<td><code><dfn value>-webkit-box</dfn></code></td>
<td><code>''flex''</code></td>
</tr>
<tr>
<td><code><dfn value id="valdef-flex--webkit-flex-valdef">-webkit-flex</dfn></code></td>
<td><code>''flex''</code></td>
</tr>
<tr>
<td><code><dfn value>-webkit-inline-box</dfn></code></td>
<td><code>''inline-flex''</code></td>
</tr>
<tr>
<td><code><dfn value>-webkit-inline-flex</dfn></code></td>
<td><code>''inline-flex''</code></td>
</tr>
</tbody>
</table>
Issue(87): These definitions of <code>-webkit-box-*</code> are known to not be web compatible.
<h4 id="text-fill-and-stroking">Text Fill and Stroking</h4>
<h5 id="the-webkit-text-fill-color">Foreground Text Color: the <code>
'-webkit-text-fill-color'</code> property</h5>
<pre class='propdef'>
Name: -webkit-text-fill-color
Value: <<color>>
Initial: ''currentcolor''
Applies to: all elements
Inherited: yes
Computed value: an RGBA color
Percentages: N/A
Media: visual
Animation type: by computed value type
</pre>
The '-webkit-text-fill-color' property defines the foreground [=fill=] color of an element's text
content.
<div class="example" id="example-webkit-text-fill-color">
Here's an example showing <code>'-webkit-text-fill-color'</code> will always determine the
foreground fill color of an element's text.
<pre class="lang-css">
.one {
color: blue;
/* the following can be omitted because it's the initial value:
-webkit-text-fill-color: currentcolor; */
}
.two {
color: red;
-webkit-text-fill-color: blue;
}
</pre>
Elements with the <code>one</code> or <code>two</code> classes will have blue text.
</div>
<h5 id="the-webkit-text-stroke-color">Text Stroke Color: the <code>
'-webkit-text-stroke-color'</code> property</h5>
<pre class='propdef'>
Name: -webkit-text-stroke-color
Value: <<color>>
Initial: ''currentcolor''
Applies to: all elements
Inherited: yes
Computed value: an RGBA color
Percentages: N/A
Media: visual
Animation type: by computed value type
</pre>
The '-webkit-text-stroke-color' property specifies a [=stroke=] color for an element's text.
<h5 id="the-webkit-text-stroke-width">Text Stroke Thickness: the <code>
'-webkit-text-stroke-width'</code> property</h5>
<pre class='propdef'>
Name: -webkit-text-stroke-width
Value: <<line-width>>
Initial: 0
Applies to: all elements
Inherited: yes
Computed value: absolute length
Percentages: N/A
Media: visual
Animation type: discrete
</pre>
The '-webkit-text-stroke-width' property specifies the width of the [=stroke=] drawn at the edge of
each glyph of an element's text. A zero value results in no [=stroke=] being painted. A negative
value is [=invalid=].
<h5 id="the-webkit-text-stroke">Text Stroke Shorthand: the <code>
'-webkit-text-stroke'</code> property</h5>
<pre class='propdef'>
Name: -webkit-text-stroke
Value: <<line-width>> || <<color>>
Initial: See individual properties
Applies to: See individual properties
Inherited: yes
Computed value: See individual properties
Percentages: N/A
Media: visual
Animation type: See individual properties
</pre>
The '-webkit-text-stroke' property is a shorthand property
for the '-webkit-text-stroke-width' and '-webkit-text-stroke-color' properties,
for setting the [=stroke=] width and
[=stroke=] color of an element's text.
<div class="example" id="example-webkit-text-stroke">
Here are two examples showing how to use the longhand and shorthand
<code>'-webkit-text-stroke'</code> properties to achieve white text with a black stroked text
effect.
<pre class="lang-css">
.stroked-text-longhand {
color: #fff;
-webkit-text-stroke-color: #000;
-webkit-text-stroke-width: 1px;
}
.stroked-text-shorthand {
-webkit-text-fill-color: #fff;
-webkit-text-stroke: thin #000;
}
</pre>
The element <pre><p class="stroked-text-longhand">Serious typography</p></pre> would be
rendered as follows:
<img width="381" height="116" src="stroked-text.png" alt="image of stroked text">
</div>
<h3 id="css-property-values">CSS Property values</h3>
<h4 id="touch-action">Additional <code>touch-action</code> values</h4>
This section augments the <a href="https://w3c.github.io/pointerevents/#the-touch-action-css-property">
definition of <code>touch-action</code></a> from [[!pointerevents2]] to
<a href="https://github.com/whatwg/compat/issues/68">add</a> the <code>pinch-zoom</code> value.
<pre class='propdef'>
Name: touch-action
Value: auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation
Initial: auto
Applies to: all elements except: non-replaced inline elements, table rows, row groups, table columns, and column groups.
Inherited: no
Computed value: Same as specified value
Percentages: N/A
Media: visual
Animation type: not animatable
</pre>
When specified, the <code>pinch-zoom</code> token enables multi-finger panning and zooming of the
page. For zooming to occur, all fingers must start on an element that has the pinch-zoom behavior
enabled (via one of the <code>pinch-zoom</code>, <code>manipulation</code>, or <code>auto</code>
values on itself or an ancestor).
<div class="note">Scenarios like image carousels which wish to disable only horizontal panning can
use "<code>touch-action: pan-y pinch-zoom</code>"
to avoid disabling zooming unnecessarily.</div>
<code>manipulation</code> is an alias for "<code>pan-x pan-y pinch-zoom</code>".
<h2 id="dom-compat-section">DOM Compatibility</h2>
<h3 id="webkitcssmatrix-interface">The WebKitCSSMatrix interface</h3>
Note: {{WebKitCSSMatrix}} is now defined by the DOM Geometry specification. [[!geometry-1]].
<h3 id="windoworientation-interface">
<a attribute lt="orientation"><code>window.orientation</code></a> API
</h3>
<pre class="idl">
partial interface Window {
readonly attribute short orientation;
attribute EventHandler onorientationchange;
};
partial interface HTMLBodyElement {
attribute EventHandler onorientationchange;
};
</pre>
When getting the <dfn attribute for="Window">orientation</dfn> attribute, the user agent must run
the following steps:
1. Let <var>document</var> be [=this=]'s [=relevant global object=]'s [=associated Document=].
1. Return <var>document</var>'s current <a href="#dfn-window-orientation-angle"><code>window.orientation</code> angle</a>.
Whenever the viewport is drawn at a different angle compared to the device's natural orientation,
the user agent must run the following steps:
1. <a lt="fire an event">Fire an event</a> named
<code><dfn id="event-orientationchange" lt="orientationchange">orientationchange</dfn></code> at the
{{Window}} object of the <a>active document</a>.
User agents implementing the <a attribute lt="orientation"><code>window.orientation</code></a>
attribute and its associated <a>orientationchange</a> event must not expose them on non-Mobile
platforms.
<div class="note">iOS Safari also fires an <code>orientationchange</code> event on the
<code><{body}></code> element, but other implementations do not, suggesting it's not necessary for
compatibility with the web.</div>
<h4 id="dfn-window-orientation-angle">
<a attribute lt="orientation"><code>window.orientation</code></a> angle
</h4>
The possible integer values for the <a attribute lt="orientation"><code>window.orientation</code></a>
angle are: <code>-90</code>, <code>0</code>, <code>90</code>, <code>180</code>. User agents must
support the <code>-90</code>, <code>0</code> and <code>90</code> values and may optionally support
<code>180</code>.
<p class="note">
<code>0</code> represents the natural orientation. <code>-90</code> represents a
rotation 90 degrees clockwise from the natural orientation. <code>90</code> represents a rotation
90 degrees counterclockwise from the natural orientation. <code>180</code> represents a rotation
180 degrees from the natural orientation.
</p>
In order to determine the current <a attribute lt="orientation"><code>window.orientation</code></a>
angle, the user agent must run the following steps:
<ol>
<li>Let |orientationAngle| be the <a>current orientation angle</a>.
<ol>
<li>If |orientationAngle| is less than 180, return |orientationAngle|.
<li>If |orientationAngle| is 180, and the [=user agent=] supports that value, return
|orientationAngle|, else return 0.
<li>If |orientationAngle| is greater than 180, return |orientationAngle| - 360.
</ol>
</li>
</ol>
<h4 id="event-handlers">Event Handlers on {{Window}} objects and <code><{body}></code> elements</h4>
The following are the event handlers and their corresponding event handler event types that must be
supported on all {{Window}} objects and <code><{body}></code> elements as attributes:
<table>
<thead>
<tr>
<th><a>event handler</a></th>
<th><a>event handler event type</a></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>{{Window/onorientationchange}}</code>
</td>
<td>
<code><a lt="orientationchange">orientationchange</a></code>
</td>
</tr>
</tbody>
</table>
<h2 id="ua-string-section">The User-Agent String</h2>
The <code>User-Agent</code> header field syntax is formally defined by [[!HTTP-SEMANTICS]] and
provides SHOULD-level guidance on its value. This section serves as a descriptive record of the
<code>User-Agent</code> patterns found in the so-called major web browsers, but much of it will
apply to other browsers with a shared heritage (i.e., forks and embedders) as well as any
<a>user agent</a> in the more general sense that send a <code>User-Agent</code> <a>header</a>.
<h3 id="ua-string-patterns">User-Agent Tokens</h3>
A User-Agent <dfn>token</dfn> is a string that represents an abstraction over a semantic unit in the
<code>User-Agent</code> string. This document formalizes a <a>token</a> as a <a>string</a> that
begins with an opening bracket "<" and ends with a closing ">" bracket, e.g.,
<code><version></code>. A <a>token</a> may also contain other <a>tokens</a>.
A User-Agent <dfn>constant</dfn> is a <a>string</a> whose value does not change.
When a <a>token</a>'s value is made up from one or more <a>tokens</a>, and optionally
<a>constants</a>, it is said to <dfn>decompose</dfn> to those <a>tokens</a> and <a>constants</a>.
<h4 id="ua-string-token-reference">User-Agent Token Reference</h4>
This is a non-exhaustive list of common User-Agent <a>tokens</a>.
<table>
<thead>
<th>Tokens</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td><code><<dfn export>deviceCompat</dfn>></code></td>
<td>Represents the form-factor of the device. Primarily this is "<code>Mobile </code>", or
just the empty string, for Desktop or non-mobile devices. Some browsers have also sent token
values such as "<code>Tablet</code>", "<code>TV</code>", "<code>Mobile VR</code>", etc., or
included build information as well.</td>
</tr>
<tr>
<td><code><<dfn>majorVersion</dfn>></code></td>
<td>Represents the browser's major version number.</td>
</tr>
<tr>
<td><code><<dfn>minorVersion</dfn>></code></td>
<td>Represents the browser's non-major version numbers.</td>
</tr>
<tr>
<td><code><<dfn>oscpu</dfn>></code></td>
<td>Represents the device operating system and (optionally) CPU architecture.</td>
</tr>
<tr>
<td><code><<dfn>platform</dfn>></code></td>
<td>Represents the underlying device platform.
</tr>
</tbody>
</table>
<h3 id="ua-string-meta-structure">Meta Structure</h3>
The User-Agent strings that follow share the common meta structure:
"<code>Mozilla/5.0</code> (<code>a</code>) <code>b</code>"
Where <code>a</code> is one or more [=tokens=] representing device information and <code>b</code> is
one or more [=tokens=] representing browser information.
<h3 id="ua-string-chrome">Chrome</h3>
<h4 id="ua-string-pattern-chrome">Chrome User-Agent pattern</h4>
"<code>Mozilla/5.0 (<<a>unifiedPlatform</a>>)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<<a>majorVersion</a>>.0.0.0
<<a for="/">deviceCompat</a>>Safari/537.36</code>"
<div class="example" id="chrome-ua-examples">
<strong>Desktop</strong>: "<code>Mozilla/5.0 (<mark>Macintosh;
Intel Mac OS X 10_15_7</mark>) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/<mark>110</mark>.0.0.0 Safari/537.36</code>"
<strong>Mobile</strong>: "<code>Mozilla/5.0 (<mark>Linux; Android 10; K</mark>) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/<mark>110</mark>.0.0.0 <mark>Mobile</mark>
Safari/537.36</code>"
</div>
<h4 id="ua-string-tokens-chrome">Chrome-specific tokens</h4>
<table>
<thead>
<th>Tokens</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td><code><<dfn for=chrome>unifiedPlatform</dfn>></code></td>
<td>Per-platform [=constant=] that is one of the following values:
"<code>Linux; Android 10; K</code>"<br>
"<code>Windows NT 10.0; Win64; x64</code>"<br>
"<code>Macintosh; Intel Mac OS X 10_15_7"<br>
"<code>X11; Linux x86_64</code>"<br>
"<code>X11; CrOS x86_64 14541.0.0</code>"<br>
"<code>Fuchsia</code>"<br>
</td>
</tr>
</tbody>
</table>
<h3 id="ua-string-firefox">Firefox</h3>
<h4 id="ua-string-pattern-firefox">Firefox User-Agent pattern</h4>
"<code>Mozilla/5.0 (<<a>firefoxPlatform</a>>; rv: <<a>firefoxVersion</a>>) Gecko/<<a>geckoVersion</a>>
Firefox/<<a>firefoxVersion</a>></code>"
<div class="example" id="firefox-ua-examples">
<strong>Desktop</strong>: "<code>Mozilla/5.0 (<mark>Windows NT 10.0</mark>;
<mark>Win64; x64;</mark> rv:<mark>100</mark>.0) Gecko/20100101 Firefox/<mark>100</mark>.0</code>"
<strong>Mobile</strong>: "<code>Mozilla/5.0 (<mark>Android 10</mark>; <mark>Mobile;</mark>
rv:<mark>100</mark>.0) Gecko/<mark>100</mark>.0 Firefox/<mark>100</mark>.0</code>"
</div>
<h4 id="ua-string-tokens-firefox">Firefox-specific tokens</h4>
<code><<dfn>firefoxVersion</dfn>></code> <a>decomposes</a> to the following:
"<code><<a>majorVersion</a>>.0</code>"
In Firefox on desktop platforms (Windows, macOS, Linux, etc.),
<code><<dfn>geckoVersion</dfn>></code> is the frozen build
date "<code>20100101</code>". In Firefox for Android, <code><<a>geckoVersion</a>></code> is the
same value as <code><<a>firefoxVersion</a>></code>.
<code><<dfn>firefoxPlatform</dfn>></code> <a>decomposes</a> to the following:
On desktop platforms, "<code><<a>platform</a>>; <<a>oscpu</a>></code>".
On Firefox for Android, "<code><<a>platform</a>>; <<a for=firefox>deviceCompat</a>></code>".
<table>
<thead>
<th>Tokens</th>
<th>Description</th>
</thead>
<tbody>
<tr><!-- TODO: consider documenting VR patterns -->
<td><code><<dfn for=firefox>deviceCompat</dfn>></code></td>
<td>The string "<code>Mobile</code>", without any leading or trailing spaces.</td>
</tr>
</tbody>
</table>
<h3 id="ua-string-safari">Safari</h3>
<h4 id="ua-string-pattern-safari">Safari User-Agent pattern</h4>
"<code>Mozilla/5.0 (<<a>safariPlatform</a>>) AppleWebKit/605.1.15 (KHTML, like Gecko)
Version/<<a>safariVersion</a>><<a for="/">deviceCompat</a>>Safari/<<a>webkitVersion</a>></code>"
<div class="example" id="safari-ua-examples">
<!-- https://github.com/WebKit/WebKit/blob/8427f75c2c505bbeac2898839e57c027f0bfccd8/Source/WebCore/platform/mac/UserAgentMac.mm -->
<strong>Desktop</strong>: "<code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15