forked from w3c/csswg-drafts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOverview.html
More file actions
1535 lines (1528 loc) · 109 KB
/
Overview.html
File metadata and controls
1535 lines (1528 loc) · 109 KB
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
<!doctype html><html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>CSS Logical Properties Level 1</title>
<meta content="exploring" name="csswg-work-status">
<meta content="ED" name="w3c-status">
<link href="../default.css" rel="stylesheet" type="text/css">
<link href="../csslogo.ico" rel="shortcut icon" type="image/x-icon">
<style>
body {
background: url("https://www.w3.org/StyleSheets/TR/logo-ED") top left no-repeat white;
background-attachment: fixed;
color: black;
font-family: sans-serif;
margin: 0 auto;
max-width: 50em;
padding: 2em 1em 2em 70px;
}
:link { color: #00C; background: transparent }
:visited { color: #609; background: transparent }
a[href]:active { color: #C00; background: transparent }
a[href]:hover { background: #ffa }
a[href] img { border-style: none }
h1, h2, h3, h4, h5, h6 { text-align: left }
h1, h2, h3 { color: #005A9C; }
h1 { font: 170% sans-serif }
h2 { font: 140% sans-serif }
h3 { font: 120% sans-serif }
h4 { font: bold 100% sans-serif }
h5 { font: italic 100% sans-serif }
h6 { font: small-caps 100% sans-serif }
.hide { display: none }
div.head { margin-bottom: 1em }
div.head h1 { margin-top: 2em; clear: both }
div.head table { margin-left: 2em; margin-top: 2em }
p.copyright { font-size: small }
p.copyright small { font-size: small }
pre { margin-left: 2em }
dt { font-weight: bold }
ul.toc, ol.toc {
list-style: none;
}
</style>
<meta content="Bikeshed 1.0.0" name="generat
8096
or">
<style>.highlight .hll { background-color: #ffffcc }
.highlight { background: #ffffff; }
.highlight .c { color: #708090 } /* Comment */
.highlight .k { color: #990055 } /* Keyword */
.highlight .l { color: #669900 } /* Literal */
.highlight .n { color: #0077aa } /* Name */
.highlight .o { color: #999999 } /* Operator */
.highlight .p { color: #999999 } /* Punctuation */
.highlight .cm { color: #708090 } /* Comment.Multiline */
.highlight .cp { color: #708090 } /* Comment.Preproc */
.highlight .c1 { color: #708090 } /* Comment.Single */
.highlight .cs { color: #708090 } /* Comment.Special */
.highlight .kc { color: #990055 } /* Keyword.Constant */
.highlight .kd { color: #990055 } /* Keyword.Declaration */
.highlight .kn { color: #990055 } /* Keyword.Namespace */
.highlight .kp { color: #990055 } /* Keyword.Pseudo */
.highlight .kr { color: #990055 } /* Keyword.Reserved */
.highlight .kt { color: #990055 } /* Keyword.Type */
.highlight .ld { color: #669900 } /* Literal.Date */
.highlight .m { color: #990055 } /* Literal.Number */
.highlight .s { color: #669900 } /* Literal.String */
.highlight .na { color: #0077aa } /* Name.Attribute */
.highlight .nc { color: #0077aa } /* Name.Class */
.highlight .no { color: #0077aa } /* Name.Constant */
.highlight .nd { color: #0077aa } /* Name.Decorator */
.highlight .ni { color: #0077aa } /* Name.Entity */
.highlight .ne { color: #0077aa } /* Name.Exception */
.highlight .nf { color: #0077aa } /* Name.Function */
.highlight .nl { color: #0077aa } /* Name.Label */
.highlight .nn { color: #0077aa } /* Name.Namespace */
.highlight .py { color: #0077aa } /* Name.Property */
.highlight .nt { color: #0077aa } /* Name.Tag */
.highlight .nv { color: #0077aa } /* Name.Variable */
.highlight .ow { color: #999999 } /* Operator.Word */
.highlight .mb { color: #990055 } /* Literal.Number.Bin */
.highlight .mf { color: #990055 } /* Literal.Number.Float */
.highlight .mh { color: #990055 } /* Literal.Number.Hex */
.highlight .mi { color: #990055 } /* Literal.Number.Integer */
.highlight .mo { color: #990055 } /* Literal.Number.Oct */
.highlight .sb { color: #669900 } /* Literal.String.Backtick */
.highlight .sc { color: #669900 } /* Literal.String.Char */
.highlight .sd { color: #669900 } /* Literal.String.Doc */
.highlight .s2 { color: #669900 } /* Literal.String.Double */
.highlight .se { color: #669900 } /* Literal.String.Escape */
.highlight .sh { color: #669900 } /* Literal.String.Heredoc */
.highlight .si { color: #669900 } /* Literal.String.Interpol */
.highlight .sx { color: #669900 } /* Literal.String.Other */
.highlight .sr { color: #669900 } /* Literal.String.Regex */
.highlight .s1 { color: #669900 } /* Literal.String.Single */
.highlight .ss { color: #669900 } /* Literal.String.Symbol */
.highlight .vc { color: #0077aa } /* Name.Variable.Class */
.highlight .vg { color: #0077aa } /* Name.Variable.Global */
.highlight .vi { color: #0077aa } /* Name.Variable.Instance */
.highlight .il { color: #990055 } /* Literal.Number.Integer.Long */
.highlight { background: hsl(24, 20%, 95%); }
code.highlight { padding: .1em; border-radius: .3em; }
pre.highlight, pre > code.highlight { display: block; padding: 1em; margin: .5em 0; overflow: auto; border-radius: 0; }
</style>
</head>
<body class="h-entry">
<div class="head">
<p data-fill-with="logo"><a class="logo" href="http://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/Icons/w3c_home" width="72"> </a> </p>
<h1 class="p-name no-ref" id="title">CSS Logical Properties Level 1</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2015-10-26">26 October 2015</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
<dd><a class="u-url" href="http://dev.w3.org/csswg/css-logical-props/">http://dev.w3.org/csswg/css-logical-props/</a>
<dt>Feedback:
<dd><span><a href="mailto:www-style@w3.org?subject=%5Bcss-logical-props%5D%20YOUR%20TOPIC%20HERE">www-style@w3.org</a> with subject line “<kbd>[css-logical-props] <i>… message topic …</i></kbd>” (<a href="http://lists.w3.org/Archives/Public/www-style/" rel="discussion">archives</a>)</span>
<dt>Issue Tracking:
<dd><a href="#issues-index">Inline In Spec</a>
<dt class="editor">Editors:
<dd class="editor p-author h-card vcard"><a class="p-name fn u-email email" href="mailto:ratan@microsoft.com">Rossen Atanassov</a> (<span class="p-org org">Microsoft</span>)
<dd class="editor p-author h-card vcard"><a class="p-name fn u-url url" href="http://fantasai.inkedblade.net/contact">Elika J. Etemad / fantasai</a> (<span class="p-org org">Invited Expert</span>)
</dl>
</div>
<div data-fill-with="warning"></div>
<p class="copyright" data-fill-with="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2015 <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>). W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply. </p>
<hr title="Separator for header">
</div>
<h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="content">Abstract</span></h2>
<div class="p-summary" data-fill-with="abstract">
<p>This module introduces logical properties and values that provide the author with the ability to control layout through logical, rather than physical, direction and dimension mappings. The module defines logical properties and values for the features defined in [CSS21]. These properties are writing-mode relative equivalents of their corresponding physical properties.</p>
<a href="http://www.w3.org/TR/CSS/">CSS</a> is a language for describing the rendering of structured documents
(such as HTML and XML)
on screen, on paper, in speech, etc.
</div>
<h2 class="no-num no-toc no-ref heading settled" id="status"><span class="content">Status of this document</span></h2>
<div data-fill-with="status">
<p> This is a public copy of the editors’ draft.
It is provided for discussion only and may change at any moment.
Its publication here does not imply endorsement of its contents by W3C.
Don’t cite this document other than as work in progress. </p>
<p> The (<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>) public mailing list <a href="mailto:www-style@w3.org?Subject=%5Bcss-logical-props%5D%20PUT%20SUBJECT%20HERE">www-style@w3.org</a> (see <a href="http://www.w3.org/Mail/Request">instructions</a>)
is preferred for discussion of this specification.
When sending e-mail,
please put the text “css-logical-props” in the subject,
preferably like this:
“[css-logical-props] <em>…summary of comment…</em>” </p>
<p> This document was produced by the <a href="http://www.w3.org/Style/CSS/members">CSS Working Group</a> (part of the <a href="http://www.w3.org/Style/">Style Activity</a>). </p>
<p> This document was produced by a group operating under
the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 W3C Patent Policy</a>.
W3C maintains a <a href="http://www.w3.org/2004/01/pp-impl/32061/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group;
that page also includes instructions for disclosing a patent.
An individual who has actual knowledge of a patent which the individual believes contains <a href="htt
1E80
p://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section 6 of the W3C Patent Policy</a>. </p>
<p> This document is governed by the <a href="http://www.w3.org/2015/Process-20150901/" id="w3c_process_revision">1 September 2015 W3C Process Document</a>. </p>
<p></p>
</div>
<div data-fill-with="at-risk"></div>
<h2 class="no-num no-toc no-ref heading settled" id="contents"><span class="content">Table of Contents</span></h2>
<div data-fill-with="table-of-contents" role="navigation">
<ul class="toc" role="directory">
<li>
<a href="#logical-controls"><span class="secno">1</span> <span class="content"> Logical Directional Values: <span class="css">block-start</span>, <span class="css">block-end</span>, <span class="css">inline-start</span>, <span class="css">inline-end</span></span></a>
<ul class="toc">
<li><a href="#caption-side"><span class="secno">1.1</span> <span class="content"> Logical Values for the <span class="property">caption-side</span> Property</span></a>
<li><a href="#float-clear"><span class="secno">1.2</span> <span class="content"> Logical Values for the <span class="property">float</span> and <span class="property">clear</span> Properties</span></a>
<li><a href="#text-align"><span class="secno">1.3</span> <span class="content"> Logical Values for the <span class="property">text-align</span> Property</span></a>
<li><a href="#resize"><span class="secno">1.4</span> <span class="content"> Logical Values for the <span class="property">resize</span> Property</span></a>
</ul>
<li><a href="#logical-page"><span class="secno">2</span> <span class="content"> Logical Page Classifications</span></a>
<li>
<a href="#logical-box-props"><span class="secno">3</span> <span class="content"> Logical Box Model Properties </span></a>
<ul class="toc">
<li><a href="#logical-dimension-properties"><span class="secno">3.1</span> <span class="content"> Logical Height and Logical Width: the <span class="property">block-size</span> and <span class="property">inline-size</span> properties</span></a>
<li><a href="#logical-prop"><span class="secno">3.2</span> <span class="content"> Logical Margins and Offsets:
the margin- and offset- block-start/block-end/inline-start/inline-end properties</span></a>
<li><a href="#border-padding"><span class="secno">3.3</span> <span class="content"> Logical Padding and Border: the padding- and border-<var>*</var>-
block-start/block-end/inline-start/inline-end properties</span></a>
<li><a href="#logical-shorthand-keyword"><span class="secno">3.4</span> <span class="content"> Shorthand Properties with <span class="css">logical</span> Keyword</span></a>
</ul>
<li>
<a href="#background-and-borders"><span class="secno">4</span> <span class="content"> Logical Background and Border Images</span></a>
<ul class="toc">
<li><a href="#background-image-transform-prop"><span class="secno">4.1</span> <span class="content"> Background Image Transform: The <span class="css">background-image-transform</span> property</span></a>
<li><a href="#background-repeat-prop"><span class="secno">4.2</span> <span class="content"> The <span class="property">background-repeat</span> property</span></a>
<li><a href="#border-image-transform-prop"><span class="secno">4.3</span> <span class="content"> Border Image Transform: The <span class="property">border-image-transform</span> property</span></a>
</ul>
<li>
<a href="#conformance"><span class="secno"></span> <span class="content"> Conformance</span></a>
<ul class="toc">
<li><a href="#conventions"><span class="secno"></span> <span class="content"> Document conventions</span></a>
<li><a href="#conformance-classes"><span class="secno"></span> <span class="content"> Conformance classes</span></a>
<li><a href="#partial"><span class="secno"></span> <span class="content"> Partial implementations</span></a>
<li><a href="#experimental"><span class="secno"></span> <span class="content"> Experimental implementations</span></a>
<li><a href="#testing"><span class="secno"></span> <span class="content"> Non-experimental implementations</span></a>
</ul>
<li>
<a href="#index"><span class="secno"></span> <span class="content">Index</span></a>
<ul class="toc">
<li><a href="#index-defined-here"><span class="secno"></span> <span class="content">Terms defined by this specification</span></a>
<li><a href="#index-defined-elsewhere"><span class="secno"></span> <span class="content">Terms defined by reference</span></a>
</ul>
<li>
<a href="#references"><span class="secno"></span> <span class="content">References</span></a>
<ul class="toc">
<li><a href="#normative"><span class="secno"></span> <span class="content">Normative References</span></a>
</ul>
<li><a href="#property-index"><span class="secno"></span> <span class="content">Property Index</span></a>
<li><a href="#issues-index"><span class="secno"></span> <span class="content">Issues Index</span></a>
</ul>
</div>
<main>
<h1 id="intro"> Introduction</h1>
<p>See <a data-link-type="biblio" href="#biblio-css3-writing-modes">[CSS3-WRITING-MODES]</a> <a href="http://www.w3.org/TR/css-writing-modes-3/#abstract-layout">Abstract Layout</a> for details on how to map between logical and physical terms.
This mapping controls the interpretation of logical keywords and properties.</p>
<h2 class="heading settled" data-level="1" id="logical-controls"><span class="secno">1. </span><span class="content"> Logical Directional Values: <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-line-grid-1/#valdef-box-snap-block-start">block-start</a>, <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-line-grid-1/#valdef-box-snap-block-end">block-end</a>, <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-page-floats-3/#valdef-float-inline-start">inline-start</a>, <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-page-floats-3/#valdef-float-inline-end">inline-end</a></span><a class="self-link" href="#logical-controls"></a></h2>
<p>Properties that accept physical directional keyword values
(<a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-top">top</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-bottom">bottom</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-left">left</a>, or <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-right">right</a>) are redefined
to also accept the appropriate logical directional keywords.
In such cases,
the logical values can be used in place of the corresponding physical values.
For properties that take multiple keywords, combinations of logical and
physical values are not allowed (unless otherwise specified in a future specification).</p>
<p>Properties can be either 1-dimensional or 2-dimensional.
When contextually constrained to one dimension,
the logical keywords are shortened.</p>
<h3 class="heading settled" data-level="1.1" id="caption-side"><span class="secno">1.1. </span><span class="content"> Logical Values for the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/tables.html#propdef-caption-side">caption-side</a> Property</span><a class="self-link" href="#caption-side"></a></h3>
<table class="definition propdef partial" data-link-for-hint="caption-side">
<tbody>
<tr>
<th>Name:
<td><a class="css" data-link-type="property" href="https://drafts.csswg.org/css2/tables.html#propdef-caption-side">caption-side</a>
<tr class="value">
<th>New values:
<td class="prod">block-start <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> block-end <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> inline-start <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> inline-end
</table>
<p>The <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/tables.html#propdef-caption-side">caption-side</a> property is 1-dimensional in CSS2.1,
but was 2-dimensional in CSS2.0,
(and presumably will be 2-dimensional again in the next update to CSS tables).
It therefore accepts the full set of logical directions.
However, the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-page-floats-3/#valdef-float-inline-start">inline-start</a> and <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-page-floats-3/#valdef-float-inline-end">inline-end</a> properties
(which correspond to the behavior of the <a class="css" data-link-type="maybe" href="http://www.w3.org/TR/css3-2d-transforms/#valuedef-left0">left</a> and <a class="css" data-link-type="maybe" href="http://www.w3.org/TR/css3-2d-transforms/#valuedef-right0">right</a> values in CSS2.0)
are only required to be supported by UAs that support <a class="css" data-link-type="maybe" href="http://www.w3.org/TR/css3-2d-transforms/#valuedef-left0">left</a> and <a class="css" data-link-type="maybe" href="http://www.w3.org/TR/css3-2d-transforms/#valuedef-right0">right</a>.</p>
<h3 class="heading settled" data-level="1.2" id="float-clear"><span class="secno">1.2. </span><span class="content"> Logical Values for the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visuren.html#propdef-float">float</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visuren.html#propdef-clear">clear</a> Properties</span><a class="self-link" href="#float-clear"></a></h3>
<table class="definition propdef partial" data-link-for-hint="float">
<tbody>
<tr>
<th>Name:
<td><a class="css" data-link-type="property" href="https://drafts.csswg.org/css2/visuren.html#propdef-float">float</a>, <a class="css" data-link-type="property" href="https://drafts.csswg.org/css2/visuren.html#propdef-clear">clear</a>
<tr class="value">
<th>New values:
<td class="prod">inline-start <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> inline-end
</table>
<p class="issue" id="issue-98c730b0"><a class="self-link" href="#issue-98c730b0"></a> Is this a 2-directional property? Should these just be <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-align-3/#valdef-self-position-start">start</a>/<a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-align-3/#valdef-self-position-end">end</a>?</p>
<h3 class="heading settled" data-level="1.3" id="text-align"><span class="secno">1.3. </span><span class="content"> Logical Values for the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-text-3/#propdef-text-align">text-align</a> Property</span><a class="self-link" href="#text-align"></a></h3>
<table class="definition propdef partial" data-link-for-hint="text-align">
<tbody>
<tr>
<th>Name:
<td><a class="css" data-link-type="property" href="https://drafts.csswg.org/css-text-3/#propdef-text-align">text-align</a>
<tr class="value">
<th>New values:
<td class="prod">start <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> end
</table>
<p>These values are normatively defined in <a data-link-type="biblio" href="#biblio-css3text">[CSS3TEXT]</a>.</p>
<p class="issue" id="issue-13eba19d"><a class="self-link" href="#issue-13eba19d"></a> float needs coordination with GCPM where it defines page floats </p>
<h3 class="heading settled" data-level="1.4" id="resize"><span class="secno">1.4. </span><span class="content"> Logical Values for the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-ui-3/#propdef-resize">resize</a> Property</span><a class="self-link" href="#resize"></a></h3>
<table class="definition propdef partial" data-link-for-hint="resize">
<tbody>
<tr>
<th>Name:
<td><a class="css" data-link-type="property" href="https://drafts.csswg.org/css-ui-3/#propdef-resize">resize</a>
<tr class="value">
<th>New values:
<td class="prod">block <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> inline
</table>
<h2 class="heading settled" data-level="2" id="logical-page"><span class="secno">2. </span><span class="content"> Logical Page Classifications</span><a class="self-link" href="#logical-page"></a></h2>
<p>In CSS, all pages are classified by user agents as either left pages
or right pages. <a data-link-type="biblio" href="#biblio-css21">[CSS21]</a> Which page is first in a spread, however,
depends on whether the page progression is left-to-right or right-to-left.</p>
<p>To allow control of page breaking to the page that is on the earlier
or later side of a spread, rather than to the left or right side of a
spread, this module introduces the following additional keywords for the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/page.html#propdef-page-break-after">page-break-after</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/page.html#propdef-page-break-before">page-break-before</a> properties <a data-link-type="biblio" href="#biblio-css21">[CSS21]</a>:</p>
<dl>
<dt><dfn class="css" data-dfn-for="logical-page" data-dfn-type="value" data-export="" id="valdef-logical-page-recto">recto<a class="self-link" href="#valdef-logical-page-recto"></a></dfn>
<dd> Equivalent to <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-right">right</a> in left-to-right page progressions
and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-left">left</a> in right-to-left page progressions.
<dt><dfn class="css" data-dfn-for="logical-page" data-dfn-type="value" data-export="" id="valdef-logical-page-verso">verso<a class="self-link" href="#valdef-logical-page-verso"></a></dfn>
<dd> Equivalent to <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-left">left</a> in left-to-right page progressions
and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-right">right</a> in right-to-left page progressions.
</dl>
<p>These values are further defined in <a data-link-type="biblio" href="#biblio-css3-break">[CSS3-BREAK]</a>.</p>
<p>Logical page selectors are also added to support logical page selection.
Authors typically place page numbers using physical placements,
but the contents of headers often follows conventions depending
on which page in the spread is earlier.</p>
<p>Following <a href="http://www.w3.org/TR/CSS21/page.html#page-selectors">page
selectors</a> are added to support this scenario:</p>
<dl>
<dt><dfn class="css" data-dfn-for="logical-page-selector" data-dfn-type="value" data-export="" id="valdef-logical-page-selector-recto">:recto<a class="self-link" href="#valdef-logical-page-selector-recto"></a></dfn>
<dd> Equivalent to ':right' in left-to-right page progressions
and ':left' in right-to-left page progressions.
<dt><dfn class="css" data-dfn-for="logical-page-selector" data-dfn-type="value" data-export="" id="valdef-logical-page-selector-verso">:verso<a class="self-link" href="#valdef-logical-page-selector-verso"></a></dfn>
<dd> Equivalent to ':left' in left-to-right page progressions
and ':right' in right-to-left page progressions.
</dl>
<p>The logical page selectors have specificity equal to the ':left'
and ':right' page selectors.</p>
<h2 class="heading settled" data-level="3" id="logical-box-props"><span class="secno">3. </span><span class="content"> Logical Box Model Properties </span><a class="self-link" href="#logical-box-props"></a></h2>
<p>This specification introduces new CSS properties
that are logical equivalents
of physical box model properties.</p>
<p>The specified values of these properties are separate from
the specified values of the parallel physical properties,
but the logical and physical properties share computed values.
Which pairs of properties share computed values
depends on the computed values of <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-orientation">text-orientation</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">direction</a>.
For a summary of these dependencies, see <a href="https://drafts.csswg.org/css-writing-modes/#logical-to-physical">Abstract-to-Physical Mappings</a> in <a data-link-type="biblio" href="#biblio-css3-writing-modes">[CSS3-WRITING-MODES]</a>.</p>
<p>A computed value that has logical and physical properties
is determined by applying the CSS cascade to declarations of both.
Overriding is not determined by whether a declaration is logical or physical,
but only by the rules of the CSS cascade <a data-link-type="biblio" href="#biblio-css3-cascade">[CSS3-CASCADE]</a>.</p>
<p class="note" role="note"> Note that this requires implementations to maintain
relative order of declarations within a CSS declaration block,
which was not previously required for CSS cascading. </p>
<div class="example" id="example-d5b4fed5">
<a class="self-link" href="#example-d5b4fed5"></a> For example, given the following rule:
<pre class="lang-css highlight"><span class="nt">p</span> <span class="p">{</span>
<span class="k">margin</span><span class="o">-</span><span class="k">inline</span><span class="o">-</span><span class="n">start</span><span class="o">:</span> <span class="m">1px</span><span class="p">;</span>
<span class="k">margin-left</span><span class="o">:</span> <span class="m">2px</span><span class="p">;</span>
<span class="k">margin</span><span class="o">-</span><span class="k">inline</span><span class="o">-</span><span class="n">end</span><span class="o">:</span> <span class="m">3px</span><span class="p">;</span>
<span class="p">}</span></pre>
<p>In a paragraph with computed <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a> being <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-writing-modes-3/#valdef-writing-mode-horizontal-tb">horizontal-tb</a> and computed <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">direction</a> being <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-writing-modes-3/#valdef-direction-ltr">ltr</a>,
the computed value of <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-margin-left">margin-left</a> is <span class="css">2px</span>,
since for that <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">direction</a>, <a class="property" data-link-type="propdesc" href="#propdef-margin-inline-start">margin-inline-start</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-margin-left">margin-left</a> share a computed value,
and the declaration of <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css
1E80
2/box.html#propdef-margin-left">margin-left</a> is after the declaration of <a class="property" data-link-type="propdesc" href="#propdef-margin-inline-start">margin-inline-start</a>.
However, if the computed <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">direction</a> were instead <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-writing-modes-3/#valdef-direction-rtl">rtl</a>,
the computed value of <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-margin-left">margin-left</a> is <span class="css">3px</span>,
since <a class="property" data-link-type="propdesc" href="#propdef-margin-inline-end">margin-inline-end</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-margin-left">margin-left</a> share a computed value,
and the declaration of <a class="property" data-link-type="propdesc" href="#propdef-margin-inline-end">margin-inline-end</a> is after the declaration of <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-margin-left">margin-left</a>.</p>
</div>
<p class="issue" id="issue-6dde0886"><a class="self-link" href="#issue-6dde0886"></a> How do computed value APIs, e.g., getComputedStyle() work?
Can they be used with either logical or physical properties,
or only with the physical ones? </p>
<h3 class="heading settled" data-level="3.1" id="logical-dimension-properties"><span class="secno">3.1. </span><span class="content"> Logical Height and Logical Width: the <a class="property" data-link-type="propdesc" href="#propdef-block-size">block-size</a> and <a class="property" data-link-type="propdesc" href="#propdef-inline-size">inline-size</a> properties</span><a class="self-link" href="#logical-dimension-properties"></a></h3>
<table class="definition propdef" data-link-for-hint="block-size">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-block-size">block-size<a class="self-link" href="#propdef-block-size"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-inline-size">inline-size<a class="self-link" href="#propdef-inline-size"></a></dfn>
<tr class="value">
<th>Value:
<td class="prod"><a class="production" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-width"><‘width’></a>
<tr>
<th>Initial:
<td>auto
<tr>
<th>Applies to:
<td>same as <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-width">width</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-height">height</a>
<tr>
<th>Inherited:
<td>no
<tr>
<th>Percentages:
<td>block-size/inline-size, respectively, of containing block
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>same as <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-width">width</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-height">height</a>
<tr>
<th>Animatable:
<td>no
</table>
<p>These properties correspond to the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-width">width</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-height">height</a> properties.
The mapping depends on the element’s <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a>.</p>
<table class="definition propdef" data-link-for-hint="min-block-size">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-min-block-size">min-block-size<a class="self-link" href="#propdef-min-block-size"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-min-inline-size">min-inline-size<a class="self-link" href="#propdef-min-inline-size"></a></dfn>
<tr class="value">
<th>Value:
<td class="prod"><a class="production" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-min-width"><‘min-width’></a>
<tr>
<th>Initial:
<td>0
<tr>
<th>Applies to:
<td>same as <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-width">width</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-height">height</a>
<tr>
<th>Inherited:
<td>no
<tr>
<th>Percentages:
<td>block-size/inline-size, respectively, of containing block
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>same as <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-min-width">min-width</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-min-height">min-height</a>
<tr>
<th>Animatable:
<td>no
</table>
<p>These properties correspond to the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-min-width">min-width</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-min-height">min-height</a> properties.
The mapping depends on the element’s <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a>.</p>
<table class="definition propdef" data-link-for-hint="max-block-size">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-max-block-size">max-block-size<a class="self-link" href="#propdef-max-block-size"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-max-inline-size">max-inline-size<a class="self-link" href="#propdef-max-inline-size"></a></dfn>
<tr class="value">
<th>Value:
<td class="prod"><a class="production" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-max-width"><‘max-width’></a>
<tr>
<th>Initial:
<td>none
<tr>
<th>Applies to:
<td>same as <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-width">width</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-height">height</a>
<tr>
<th>Inherited:
<td>no
<tr>
<th>Percentages:
<td>block-size/inline-size, respectively, of containing block
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>same as <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-max-width">max-width</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-max-height">max-height</a>
<tr>
<th>Animatable:
<td>no
</table>
<p>These properties correspond to the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-max-width">max-width</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-max-height">max-height</a> properties.
The mapping depends on the element’s <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a>.</p>
<h3 class="heading settled" data-level="3.2" id="logical-prop"><span class="secno">3.2. </span><span class="content"> Logical Margins and Offsets:
the margin- and offset- block-start/block-end/inline-start/inline-end properties</span><a class="self-link" href="#logical-prop"></a></h3>
<table class="definition propdef" data-link-for-hint="margin-block-start">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-margin-block-start">margin-block-start<a class="self-link" href="#propdef-margin-block-start"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-margin-block-end">margin-block-end<a class="self-link" href="#propdef-margin-block-end"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-margin-inline-start">margin-inline-start<a class="self-link" href="#propdef-margin-inline-start"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-margin-inline-end">margin-inline-end<a class="self-link" href="#propdef-margin-inline-end"></a></dfn>
<tr class="value">
<th>Value:
<td class="prod"><a class="production" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-margin-left"><‘margin-left’></a>
<tr>
<th>Initial:
<td>0
<tr>
<th>Applies to:
<td>same as <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-margin">margin</a>
<tr>
<th>Inherited:
<td>no
<tr>
<th>Percentages:
<td>depends on layout model
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>the percentage as specified or the absolute length or auto (see text)
<tr>
<th>Animatable:
<td>no
</table>
<p>These properties correspond to the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-margin-top">margin-top</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-margin-bottom">margin-bottom</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-margin-left">margin-left</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-margin-right">margin-right</a> properties.
The mapping depends on the <em>parent element’s</em> <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">direction</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-orientation">text-orientation</a>.</p>
<table class="definition propdef" data-link-for-hint="offset-block-start">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-offset-block-start">offset-block-start<a class="self-link" href="#propdef-offset-block-start"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-offset-block-end">offset-block-end<a class="self-link" href="#propdef-offset-block-end"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-offset-inline-start">offset-inline-start<a class="self-link" href="#propdef-offset-inline-start"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-offset-inline-end">offset-inline-end<a class="self-link" href="#propdef-offset-inline-end"></a></dfn>
<tr class="value">
<th>Value:
<td class="prod"><a class="production" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-left"><‘left’></a>
<tr>
<th>Initial:
<td>auto
<tr>
<th>Applies to:
<td>positioned elements
<tr>
<th>Inherited:
<td>no
<tr>
<th>Percentages:
<td>logical-width, resp. logical-height of containing block
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>same as box offsets: <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-top">top</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-right">right</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-bottom">bottom</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-left">left</a> properties except that directions are logical
<tr>
<th>Animatable:
<td>no
</table>
<p>These properties correspond to the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-top">top</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-bottom">bottom</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-left">left</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-position-3/#propdef-right">right</a> properties. The mapping depends on the <em>parent element’s</em> <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">direction</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-orientation">text-orientation</a>.</p>
<h3 class="heading settled" data-level="3.3" id="border-padding"><span class="secno">3.3. </span><span class="content"> Logical Padding and Border: the padding- and border-<var>*</var>-
block-start/block-end/inline-start/inline-end properties</span><a class="self-link" href="#border-padding"></a></h3>
<table class="definition propdef" data-link-for-hint="padding-block-start">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-padding-block-start">padding-block-start<a class="self-link" href="#propdef-padding-block-start"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-padding-block-end">padding-block-end<a class="self-link" href="#propdef-padding-block-end"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-padding-inline-start">padding-inline-start<a class="self-link" href="#propdef-padding-inline-start"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-padding-inline-end">padding-inline-end<a class="self-link" href="#propdef-padding-inline-end"></a></dfn>
<tr class="value">
<th>Value:
<td class="prod"><a class="production" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-padding-left"><‘padding-left’></a>
<tr>
<th>Initial:
<td>0
<tr>
<th>Applies to:
<td>all elements
<tr>
<th>Inherited:
<td>no
<tr>
<th>Percentages:
<td>logical-width of containing block
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>length (see text)
<tr>
<th>Animatable:
<td>no
</table>
<p>These properties correspond to the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-padding-top">padding-top</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-padding-bottom">padding-bottom</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-padding-left">padding-left</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-padding-right">padding-right</a> properties. The mapping depends on the
element’s <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">direction</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-orientation">text-orientation</a>.</p>
<table class="definition propdef" data-link-for-hint="border-block-start-width">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-block-start-width">border-block-start-width<a class="self-link" href="#propdef-border-block-start-width"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-block-end-width">border-block-end-width<a class="self-link" href="#propdef-border-block-end-width"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-inline-start-width">border-inline-start-width<a class="self-link" href="#propdef-border-inline-start-width"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-inline-end-width">border-inline-end-width<a class="self-link" href="#propdef-border-inline-end-width"></a></dfn>
<tr class="value">
<th>Value:
<td class="prod">border-width
<tr>
<th>Initial:
<td>medium
<tr>
<th>Applies to:
<td>all elements
<tr>
<th>Inherited:
<td>no
<tr>
<th>Percentages:
<td>logical-width of containing block
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>absolute length; 0 if the border style is none or hidden (see text)
<tr>
<th>Animatable:
<td>no
</table>
<p>These properties correspond to the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-top-width">border-top-width</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-bottom-width">border-bottom-width</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-left-width">border-left-width</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-right-width">border-right-width</a> properties. The mapping depends
on the element’s <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">direction</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-orientation">text-orientation</a>.</p>
<table class="definition propdef" data-link-for-hint="border-block-start-style">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-block-start-style">border-block-start-style<a class="self-link" href="#propdef-border-block-start-style"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-block-end-style">border-block-end-style<a class="self-link" href="#propdef-border-block-end-style"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-inline-start-style">border-inline-start-style<a class="self-link" href="#propdef-border-inline-start-style"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-inline-end-style">border-inline-end-style<a class="self-link" href="#propdef-border-inline-end-style"></a></dfn>
<tr class="value">
<th>Value:
<td class="prod">border-style
<tr>
<th>Initial:
<td>none
<tr>
<th>Applies to:
<td>all elements
<tr>
<th>Inherited:
<td>no
<tr>
<th>Percentages:
<td>n/a
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>specified value (see text)
<tr>
<th>Animatable:
<td>no
</table>
<p>These properties correspond to the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-top-style">border-top-style</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-bottom-style">border-bottom-style</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-left-style">border-left-style</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-right-style">border-right-style</a> properties. The mapping depends
on the element’s <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">direction</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-orientation">text-orientation</a>.</p>
<table class="definition propdef" data-link-for-hint="border-block-start-color">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-block-start-color">border-block-start-color<a class="self-link" href="#propdef-border-block-start-color"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-block-end-color">border-block-end-color<a class="self-link" href="#propdef-border-block-end-color"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-inline-start-color">border-inline-start-color<a class="self-link" href="#propdef-border-inline-start-color"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-inline-end-color">border-inline-end-color<a class="self-link" href="#propdef-border-inline-end-color"></a></dfn>
<tr class="value">
<th>Value:
<td class="prod">color
<tr>
<th>Initial:
<td>currentcolor
<tr>
<th>Applies to:
<td>all elements
<tr>
<th>Inherited:
<td>no
<tr>
<th>Percentages:
<td>n/a
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>computed color (see text)
<tr>
<th>Animatable:
<td>no
</table>
<p>These properties correspond to the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-top-color">border-top-color</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-bottom-color">border-bottom-color</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-left-color">border-left-color</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-right-color">border-right-color</a> properties. The mapping depends
on the element’s <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">direction</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-orientation">text-orientation</a>.</p>
<table class="definition propdef" data-link-for-hint="border-block-start">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-block-start">border-block-start<a class="self-link" href="#propdef-border-block-start"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-block-end">border-block-end<a class="self-link" href="#propdef-border-block-end"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-inline-start">border-inline-start<a class="self-link" href="#propdef-border-inline-start"></a></dfn>, <dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-inline-end">bo
8096
rder-inline-end<a class="self-link" href="#propdef-border-inline-end"></a></dfn>
<tr class="value">
<th>Value:
<td class="prod">border-width <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-any">||</a> border-style <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-any">||</a> color
<tr>
<th>Initial:
<td>(see individual properties)
<tr>
<th>Applies to:
<td>all elements
<tr>
<th>Inherited:
<td>no
<tr>
<th>Percentages:
<td>see individual properties
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>see individual properties
<tr>
<th>Animatable:
<td>no
</table>
<p>These properties correspond to the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-top">border-top</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-bottom">border-bottom</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-left">border-left</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-right">border-right</a> properties. The mapping depends on the
element’s <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">direction</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-orientation">text-orientation</a>.</p>
<h3 class="heading settled" data-level="3.4" id="logical-shorthand-keyword"><span class="secno">3.4. </span><span class="content"> Shorthand Properties with <span class="css">logical</span> Keyword</span><a class="self-link" href="#logical-shorthand-keyword"></a></h3>
<p>The shorthand properties for margin, padding, and border set values
for physical properties by default. But authors can specify the <dfn class="css" data-dfn-for="margin, padding, border-color, border-style, border-width" data-dfn-type="value" data-export="" id="valdef-margin-logical">logical<a class="self-link" href="#valdef-margin-logical"></a></dfn> keyword at the beginning of the property value to indicate that the values
map to the logical properties instead of the physical ones.</p>
<p class="issue" id="issue-2b4adeb6"><a class="self-link" href="#issue-2b4adeb6"></a> other candidates of the keyword are: <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-position-3/#valdef-position-relative">relative</a>, <span class="css">script</span>, <span class="css">writing-mode</span>, <span class="css">beas</span>, or the value itself (e.g., <span class="css">vertical-lr-ltr</span>) </p>
<p>The following <a data-link-type="biblio" href="#biblio-css21">[CSS21]</a> shorthand properties accept the <a class="css" data-link-type="maybe" href="#valdef-margin-logical">logical</a> keyword:</p>
<ul>
<li><a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-margin">margin</a>
<li><a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-padding">padding</a>
<li><a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-color">border-color</a>
<li><a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-style">border-style</a>
<li><a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-width">border-width</a>
</ul>
<p>The syntax for these properties is effectively changed by replacing</p>
<pre class="prod"><<var>value-type</var>><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#mult-num-range">{1,4}</a></pre>
<p>with</p>
<pre class="prod">logical<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#mult-opt">?</a> <<var>value-type</var>><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#mult-num-range">{1,4}</a></pre>
<p>When the logical keyword is present in the value, the values that follow are
assigned to the logical properties as follows:</p>
<ul>
<li>If only one value is set, the value applies to all four logical sides.
<li>If two values are set, the first is for block-start and block-end,
the second is for inline-start and inline-end.
<li>If three values are set, the first is for block-start,
the second is for inline-start and inline-end,
and the third is for block-end.
<li>If four values are set, they apply to the block-start, inline-end, block-end, and inline-start
sides in that order.
</ul>
<p class="issue" id="issue-5ae45c09"><a class="self-link" href="#issue-5ae45c09"></a> Should the shorthand also reset the physical properties to their initial
values? </p>
<div class="example" id="example-1acdff8c">
<a class="self-link" href="#example-1acdff8c"></a> In the following example, the two rules are equivalent:
<pre class="lang-css highlight"><span class="nt">blockquote</span> <span class="p">{</span>
<span class="k">margin</span><span class="o">:</span> <span class="n">logical</span> <span class="m">1em</span> <span class="m">2em</span> <span class="m">3em</span> <span class="m">4em</span><span class="p">;</span>
<span class="p">}</span>
<span class="nt">blockquote</span> <span class="p">{</span>
<span class="k">margin</span><span class="o">-</span><span class="k">block</span><span class="o">-</span><span class="n">start</span><span class="o">:</span> <span class="m">1em</span><span class="p">;</span>
<span class="k">margin</span><span class="o">-</span><span class="k">inline</span><span class="o">-</span><span class="n">end</span><span class="o">:</span> <span class="m">2em</span><span class="p">;</span>
<span class="k">margin</span><span class="o">-</span><span class="k">block</span><span class="o">-</span><span class="n">end</span><span class="o">:</span> <span class="m">3em</span><span class="p">;</span>
<span class="k">margin</span><span class="o">-</span><span class="k">inline</span><span class="o">-</span><span class="n">start</span><span class="o">:</span> <span class="m">4em</span><span class="p">;</span>
<span class="p">}</span></pre>
</div>
<h2 class="heading settled" data-level="4" id="background-and-borders"><span class="secno">4. </span><span class="content"> Logical Background and Border Images</span><a class="self-link" href="#background-and-borders"></a></h2>
<p><a data-link-type="biblio" href="#biblio-css3bg">[CSS3BG]</a> is handled separately because it can fill an area with specified
images, and the area to fill can be rotated or flipped depending on the text
flow.</p>
<h3 class="heading settled" data-level="4.1" id="background-image-transform-prop"><span class="secno">4.1. </span><span class="content"> Background Image Transform: The <span class="css">background-image-transform</span> property</span><a class="self-link" href="#background-image-transform-prop"></a></h3>
<table class="definition propdef" data-link-for-hint="background-image-transform">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-background-image-transform">background-image-transform<a class="self-link" href="#propdef-background-image-transform"></a></dfn>
<tr class="value">
<th>Value:
<td class="prod">logical <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> physical <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> rotate
<tr>
<th>Initial:
<td>physical
<tr>
<th>Applies to:
<td>all elements
<tr>
<th>Inherited:
<td>yes
<tr>
<th>Percentages:
<td>n/a
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>as specified
<tr>
<th>Animatable:
<td>no
</table>
<p class="issue" id="issue-f35b1639"><a class="self-link" href="#issue-f35b1639"></a> is this the right default? we need to investigate which is more common </p>
<p>This property defines whether background images are transformed to match to
the value of <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a> property, and whether <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#background-size">background-size</a> widths and
heights are logical or physical. Values have the following meanings:</p>
<dl>
<dt><dfn class="css" data-dfn-for="background-image-transform" data-dfn-type="value" data-export="" id="valdef-background-image-transform-logical">logical<a class="self-link" href="#valdef-background-image-transform-logical"></a></dfn>
<dd> The values for the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#background-size">background-size</a> property are logical.
The background images are transformed to match to the logical axis.
<dt><dfn class="css" data-dfn-for="background-image-transform" data-dfn-type="value" data-export="" id="valdef-background-image-transform-physical">physical<a class="self-link" href="#valdef-background-image-transform-physical"></a></dfn>
<dd> The values for the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#background-size">background-size</a> property are physical.
The background images remain unchanged.
<dt><dfn class="css" data-dfn-for="background-image-transform" data-dfn-type="value" data-export="" id="valdef-background-image-transform-rotate">rotate<a class="self-link" href="#valdef-background-image-transform-rotate"></a></dfn>
<dd> Similar to <a class="css" data-link-type="maybe" href="#valdef-background-image-transform-logical">logical</a>, except that the inline direction is ignored.
The result is affected only by the block flow direction.
</dl>
<h3 class="heading settled" data-level="4.2" id="background-repeat-prop"><span class="secno">4.2. </span><span class="content"> The <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#background-repeat">background-repeat</a> property</span><a class="self-link" href="#background-repeat-prop"></a></h3>
<p>The <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-backgrounds-3/#repeat-x">repeat-x</a> and <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-backgrounds-3/#repeat-y">repeat-y</a> values are logical, but in CSS3 this
property can also accept double values to specify horizontal and vertical
behaviors separately. The double values are considered logical if the <a class="css" data-link-type="maybe" href="#valdef-background-image-transform-logical">logical</a> keyword is specified, otherwise physical.</p>
<p class="issue" id="issue-f62e345a"><a class="self-link" href="#issue-f62e345a"></a> should also add repeat-horizontal and repeat-vertical for the physical value? </p>
<h3 class="heading settled" data-level="4.3" id="border-image-transform-prop"><span class="secno">4.3. </span><span class="content"> Border Image Transform: The <a class="property" data-link-type="propdesc" href="#propdef-border-image-transform">border-image-transform</a> property</span><a class="self-link" href="#border-image-transform-prop"></a></h3>
<table class="definition propdef" data-link-for-hint="border-image-transform">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-border-image-transform">border-image-transform<a class="self-link" href="#propdef-border-image-transform"></a></dfn>
<tr class="value">
<th>Value:
<td class="prod">logical <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> physical <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> rotate
<tr>
<th>Initial:
<td>rotate
<tr>
<th>Applies to:
<td>All elements, except internal table elements when <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/tables.html#propdef-border-collapse">border-collapse</a> is <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-ruby-1/#valdef-ruby-merge-collapse">collapse</a>
<tr>
<th>Inherited:
<td>yes
<tr>
<th>Percentages:
<td>n/a
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>as specified
<tr>
<th>Animatable:
<td>no
</table>
<p class="issue" id="issue-663636f0"><a class="self-link" href="#issue-663636f0"></a> is this the right initial default? </p>
<p>This property defines whether border images are transformed to match to the
value of <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode</a> property, with the reference writing mode being <a class="css" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">writing-mode: horizontal-tb; direction: ltr</a>. Values have the following
meanings:</p>
<dl>
<dt><dfn class="css" data-dfn-for="border-image-transform" data-dfn-type="value" data-export="" id="valdef-border-image-transform-logical">logical<a class="self-link" href="#valdef-border-image-transform-logical"></a></dfn>
<dd> The values for the border-image-* properties are logical.
The border images are transformed to match to the logical axis.
<dt><dfn class="css" data-dfn-for="border-image-transform" data-dfn-type="value" data-export="" id="valdef-border-image-transform-physical">physical<a class="self-link" href="#valdef-border-image-transform-physical"></a></dfn>
<dd> The values for the border-image-* properties are physical.
The border images remain unchanged.
<dt><dfn class="css" data-dfn-for="border-image-transform" data-dfn-type="value" data-export="" id="valdef-border-image-transform-rotate">rotate<a class="self-link" href="#valdef-border-image-transform-rotate"></a></dfn>
<dd> Similar to <a class="css" data-link-type="maybe" href="#valdef-border-image-transform-logical">logical</a>, except that the inline direction is ignored.
The result is affected only by the block flow direction.
</dl>
<p>The following properties use the value of this property to determine how
directional mappings are done:</p>
<ul>
<li><a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-image-slice">border-image-slice</a>
<li><a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-image-width">border-image-width</a>
<li><a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-image-outset">border-image-outset</a>
<li><a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-image-repeat">border-image-repeat</a>
<li><a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#border-image">border-image</a>
</ul>
</main>
<h2 class="no-ref no-num heading settled" id="conformance"><span class="content"> Conformance</span><a class="self-link" href="#conformance"></a></h2>
<h3 class="no-ref heading settled" id="conventions"><span class="content"> Document conventions</span><a class="self-link" href="#conventions"></a></h3>
<p>Conformance requirements are expressed with a combination of
descriptive assertions and RFC 2119 terminology. The key words "MUST",
"MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT",
"RECOMMENDED", "MAY", and "OPTIONAL" in the normative parts of this
document are to be interpreted as described in RFC 2119.
However, for readability, these words do not appear in all uppercase
letters in this specification. </p>
<p>All of the text of this specification is normative except sections
explicitly marked as non-normative, examples, and notes. <a data-link-type="biblio" href="#biblio-rfc2119">[RFC2119]</a></p>
<p>Examples in this specification are introduced with the words "for example"
or are set apart from the normative text with <code>class="example"</code>,
like this: </p>
<div class="example" id="example-f839f6c8">
<a class="self-link" href="#example-f839f6c8"></a>
<p>This is an example of an informative example.</p>
</div>
<p>Informative notes begin with the word "Note" and are set apart from the
normative text with <code>class="note"</code>, like this: </p>
<p class="note" role="note">Note, this is an informative note.</p>
<p>Advisements are normative sections styled to evoke special attention and are
set apart from other normative text with <code><strong class="advisement"></code>, like
this: <strong class="advisement"> UAs MUST provide an accessible alternative. </strong> </p>
<h3 class="no-ref heading settled" id="conformance-classes"><span class="content"> Conformance classes</span><a class="self-link" href="#conformance-classes"></a></h3>
<p>Conformance to this specification
is defined for three conformance classes: </p>
<dl>
<dt>style sheet
<dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#style-sheet">CSS
style sheet</a>.
<dt>renderer
<dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#user-agent">UA</a> that interprets the semantics of a style sheet and renders
documents that use them.
<dt>authoring tool
<dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#user-agent">UA</a> that writes a style sheet.
</dl>
<p>A style sheet is conformant to this specification
if all of its statements that use syntax defined in this module are valid
according to the generic CSS grammar and the individual grammars of each
feature defined in this module. </p>
<p>A renderer is conformant to this specification
if, in addition to interpreting the style sheet as defined by the
appropriate specifications, it supports all the features defined
by this specification by parsing them correctly
and rendering the document accordingly. However, the inability of a
UA to correctly render a document due to limitations of the device
does not make the UA non-conformant. (For example, a UA is not
required to render color on a monochrome monitor.) </p>
<p>An authoring tool is conformant to this specification
if it writes style sheets that are syntactically correct according to the
generic CSS grammar and the individual grammars of each feature in
this module, and meet all other conformance requirements of style sheets
as described in this module. </p>
<h3 class="no-ref heading settled" id="partial"><span class="content"> Partial implementations</span><a class="self-link" href="#partial"></a></h3>
<p>So that authors can exploit the forward-compatible parsing rules to
assign fallback values, CSS renderers <strong>must</strong> treat as invalid (and <a href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignore
as appropriate</a>) any at-rules, properties, property values, keywords,
and other syntactic constructs for which they have no usable level of
support. In particular, user agents <strong>must not</strong> selectively
ignore unsupported component values and honor supported values in a single
multi-value property declaration: if any value is considered invalid
(as unsupported values must be), CSS requires that the entire declaration
be ignored.</p>
<h3 class="no-ref heading settled" id="experimental"><span class="content"> Experimental implementations</span><a class="self-link" href="#experimental"></a></h3>
<p>To avoid clashes with future CSS features, the CSS2.1 specification
reserves a <a href="http://www.w3.org/TR/CSS21/syndata.html#vendor-keywords">prefixed
syntax</a> for proprietary and experimental extensions to CSS. </p>
<p>Prior to a specification reaching the Candidate Recommendation stage
in the W3C process, all implementations of a CSS feature are considered
experimental. The CSS Working Group recommends that implementations
use a vendor-prefixed syntax for such features, including those in
W3C Working Drafts. This avoids incompatibilities with future changes
in the draft. </p>
<h3 class="no-ref heading settled" id="testing"><span class="content"> Non-experimental implementations</span><a class="self-link" href="#testing"></a></h3>
<p>Once a specification reaches the Candidate Recommendation stage,
non-experimental implementations are possible, and implementors should
release an unprefixed implementation of any CR-level feature they
can demonstrate to be correctly implemented according to spec. </p>
<p>To establish and maintain the interoperability of CSS across
implementations, the CSS Working Group requests that non-experimental
CSS renderers submit an implementation report (and, if necessary, the
testcases used for that implementation report) to the W3C before
releasing an unprefixed implementation of any CSS features. Testcases
submitted to W3C are subject to review and correction by the CSS
Working Group. </p>
<p>Further information on submitting testcases and implementation reports
can be found from on the CSS Working Group’s website at <a href="http://www.w3.org/Style/CSS/Test/">http://www.w3.org/Style/CSS/Test/</a>.
Questions should be directed to the <a href="http://lists.w3.org/Archives/Public/public-css-testsuite">public-css-testsuite@w3.org</a> mailing list. </p>
<h2 class="no-num heading settled" id="index"><span class="content">Index</span><a class="self-link" href="#index"></a></h2>
<h3 class="no-num heading settled" id="index-defined-here"><span class="content">Terms defined by this specification</span><a class="self-link" href="#index-defined-here"></a></h3>
<ul class="indexlist">
<li><a href="#propdef-background-image-transform">background-image-transform</a><span>, in §4.1</span>
<li><a href="#propdef-block-size">block-size</a><span>, in §3.1</span>
<li><a href="#propdef-border-block-end">border-block-end</a><span>, in §3.3</span>
<li><a href="#propdef-border-block-end-color">border-block-end-color</a><span>, in §3.3</span>
<li><a href="#propdef-border-block-end-style">border-block-end-style</a><span>, in §3.3</span>
<li><a href="#propdef-border-block-end-width">border-block-end-width</a><span>, in §3.3</span>
<li><a href="#propdef-border-block-start">border-block-start</a><span>, in §3.3</span>
<li><a href="#propdef-border-block-start-color">border-block-start-color</a><span>, in §3.3</span>
<li><a href="#propdef-border-block-start-style">border-block-start-style</a><span>, in §3.3</span>
<li><a href="#propdef-border-block-start-width">border-block-start-width</a><span>, in §3.3</span>
<li><a href="#propdef-border-image-transform">border-image-transform</a><span>, in §4.3</span>
<li><a href="#propdef-border-inline-end">border-inline-end</a><span>, in §3.3</span>
<li><a href="#propdef-border-inline-end-color">border-inline-end-color</a><span>, in §3.3</span>
<li><a href="#propdef-border-inline-end-style">border-inline-end-style</a><span>, in §3.3</span>
<li><a href="#propdef-border-inline-end-width">border-inline-end-width</a><span>, in §3.3</span>
<li><a href="#propdef-border-inline-start">border-inline-start</a><span>, in §3.3</span>
<li><a href="#propdef-border-inline-start-color">border-inline-start-color</a><span>, in §3.3</span>
<li><a href="#propdef-border-inline-start-style">border-inline-start-style</a><span>, in §3.3</span>
<li><a href="#propdef-border-inline-start-width">border-inline-start-width</a><span>, in §3.3</span>
<li><a href="#propdef-inline-size">inline-size</a><span>, in §3.1</span>
<li>
logical
<ul>
<li><a href="#valdef-margin-logical">value for margin, padding, border-color, border-style, border-width</a><span>, in §3.4</span>
<li><a href="#valdef-background-image-transform-logical">value for background-image-transform</a><span>, in §4.1</span>
<li><a href="#valdef-border-image-transform-logical">value for border-image-transform</a><span>, in §4.3</span>
</ul>
<li><a href="#propdef-margin-block-end">margin-block-end</a><span>, in §3.2</span>
<li><a href="#propdef-margin-block-start">margin-block-start</a><span>, in §3.2</span>
<li><a href="#propdef-margin-inline-end">margin-inline-end</a><span>, in §3.2</span>
<li><a href="#propdef-margin-inline-start">margin-inline-start</a><span>, in §3.2</span>
<li><a href="#propdef-max-block-size">max-block-size</a><span>, in §3.1</span>
<li><a href="#propdef-max-inline-size">max-inline-size</a><span>, in §3.1</span>
<li><a href="#propdef-min-block-size">min-block-size</a><span>, in §3.1</span>
<li><a href="#propdef-min-inline-size">min-inline-size</a><span>, in §3.1</span>
<li><a href="#propdef-offset-block-end">offset-block-end</a><span>, in §3.2</span>
<li><a href="#propdef-offset-block-start">offset-block-start</a><span>, in §3.2</span>
<li><a href="#propdef-offset-inline-end">offset-inline-end</a><span>, in §3.2</span>
<li><a href="#propdef-offset-inline-start">offset-inline-start</a><span>, in §3.2</span>
<li><a href="#propdef-padding-block-end">padding-block-end</a><span>, in §3.3</span>
<li><a href="#propdef-padding-block-start">padding-block-start</a><span>, in §3.3</span>
<li><a href="#propdef-padding-inline-end">padding-inline-end</a><span>, in §3.3</span>
<li><a href="#propdef-padding-inline-start">padding-inline-start</a><span>, in §3.3</span>
<li>
physical
<ul>
<li><a href="#valdef-background-image-transform-physical">value for background-image-transform</a><span>, in §4.1</span>
<li><a href="#valdef-border-image-transform-physical">value for border-image-transform</a><span>, in §4.3</span>
</ul>
<li><a href="#valdef-logical-page-selector-recto">:recto</a><span>, in §2</span>
<li><a href="#valdef-logical-page-recto">recto</a><span>, in §2</span>
<li>
rotate
<ul>
<li><a href="#valdef-background-image-transform-rotate">value for background-image-transform</a><span>, in §4.1</span>
<li><a href="#valdef-border-image-transform-rotate">value for border-image-transform</a><span>, in §4.3</span>
</ul>
<li><a href="#valdef-logical-page-selector-verso">:verso</a><span>, in §2</span>
<li><a href="#valdef-logical-page-verso">verso</a><span>, in §2</span>
</ul>
<h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="content">Terms defined by reference</span><a class="self-link" href="#index-defined-elsewhere"></a></h3>
<ul class="indexlist">
<li>
<a data-link-type="biblio" href="#biblio-css-2d-transforms-1">[css-2d-transforms-1]</a> defines the following terms:
<ul>
<li><a href="http://www.w3.org/TR/css3-2d-transforms/#valuedef-left0">left</a>
<li><a href="http://www.w3.org/TR/css3-2d-transforms/#valuedef-right0">right</a>
</ul>
<li>
<a data-link-type="biblio" href="#biblio-css-align-3">[css-align-3]</a> defines the following terms:
<ul>
<li><a href="https://drafts.csswg.org/css-align-3/#valdef-self-position-end">end</a>
<li><a href="https://drafts.csswg.org/css-align-3/#valdef-self-position-start">start</a>
</ul>
<li>
<a data-link-type="biblio" href="#biblio-css-backgrounds-3">[css-backgrounds-3]</a> defines the following terms:
<ul>
<li><a href="https://drafts.csswg.org/css-backgrounds-3/#background-repeat">background-repeat</a>
<li><a href="https://drafts.csswg.org/css-backgrounds-3/#background-size">background-size</a>
<li><a href="https://drafts.csswg.org/css-backgrounds-3/#border-bottom">border-bottom</a>
<li><a href="https://drafts.csswg.org/css-backgrounds-3/#border-bottom-color">border-bottom-color</a>
<li><a href="https://drafts.csswg.org/css-backgrounds-3/#border-bottom-style">border-bottom-style</a>
<li><a href="https://drafts.csswg.org/css-backgrounds-3/#border-bottom-width">border-bottom-width</a>