-
Notifications
You must be signed in to change notification settings - Fork 706
/
Copy pathOverview.html
2847 lines (1797 loc) · 78.9 KB
/
Overview.html
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 PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang=en>
<head>
<title>Cascading Style Sheets (CSS) Snapshot 2010</title>
<link href=default.css rel=stylesheet type="text/css">
<link href="https://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet
type="text/css">
<body>
<div class=head> <!--begin-logo-->
<p><a href="http://www.w3.org/"><img alt=W3C height=48
src="https://www.w3.org/Icons/w3c_home" width=72></a> <!--end-logo-->
<h1>Cascading Style Sheets (CSS) Snapshot 2010</h1>
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 9 May 2011</h2>
<dl>
<dt>This version:</dt>
<!-- <dd><a href="http://www.w3.org/TR/2011/NOTE-css-2010-20110509/">http://www.w3.org/TR/2011/ED-css-2010-20110509/</a></dd> -->
<dd><a
href="http://dev.w3.org/csswg/css-2010/">http://dev.w3.org/csswg/css-2010/</a>
<dt>Latest version:
<dd><a
href="http://www.w3.org/TR/css-2010/">http://www.w3.org/TR/css-2010/</a>
<dt>Previous versions:
<dd><a
href="http://www.w3.org/TR/2010/WD-css-2010-20101202/">http://www.w3.org/TR/2010/WD-css-2010-20101202/</a>
<dd><a
href="http://www.w3.org/TR/css-beijing/">http://www.w3.org/TR/css-beijing/</a>
<dt>Editor:
<dd><a href="http://fantasai.inkedblade.net/contact">Elika J. Etemad</a>
</dl>
<!--begin-copyright-->
<p class=copyright><a
href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
rel=license>Copyright</a> © 2011 <a
href="http://www.w3.org/"><acronym title="World Wide Web
Consortium">W3C</acronym></a><sup>®</sup> (<a
href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute
of Technology">MIT</acronym></a>, <a href="http://www.ercim.eu/"><acronym
title="European Research Consortium for Informatics and
Mathematics">ERCIM</acronym></a>, <a
href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. 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>
<!--end-copyright-->
<hr title="Separator for header">
</div>
<h2 class="no-num no-toc" id=abstract>Abstract</h2>
<p>This document collects together into one definition all the specs that
together form the current state of Cascading Style Sheets (CSS) as of
2010. The primary audience is CSS implementors, not CSS authors, as this
definition includes modules by specification stability, not Web browser
adoption rate.
<h2 class="no-num no-toc" id=status>Status of this document</h2>
<!--begin-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>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-2010%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-2010” in the subject, preferably like this:
“[<!---->css-2010<!---->] <em>…summary of
comment…</em>”
<p>This document was produced by the <a href="/Style/CSS/members">CSS
Working Group</a> (part of the <a href="/Style/">Style Activity</a>).
<p>This document was produced by a group operating under the <a
href="/Consortium/Patent-Policy-20040205/">5 February 2004 W3C Patent
Policy</a>. W3C maintains a <a href="/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="/Consortium/Patent-Policy-20040205/#def-essential">Essential
Claim(s)</a> must disclose the information in accordance with <a
href="/Consortium/Patent-Policy-20040205/#sec-Disclosure">section 6 of the
W3C Patent Policy</a>.</p>
<!--end-status-->
<p>This document represents the state of CSS as of 2010. The CSS Working
Group does not expect any further changes to this document: new snapshots
will be published at <a
href="http://www.w3.org/TR/CSS/">http://www.w3.org/TR/CSS/</a> as CSS
advances.
<nav id="toc">
<h2 class="no-num no-toc" id=contents>Table of contents</h2>
<!--begin-toc-->
<ul class=toc>
<li><a href="#intro"><span class=secno>1. </span>Introduction</a>
<ul class=toc>
<li><a href="#w3c-process"><span class=secno>1.1. </span>The W3C Process
and CSS</a>
</ul>
<li><a href="#css-levels"><span class=secno>2. </span>CSS Levels</a>
<ul class=toc>
<li><a href="#css1"><span class=secno>2.1. </span>CSS Level 1</a>
<li><a href="#css2"><span class=secno>2.2. </span>CSS Level 2</a>
<li><a href="#css3"><span class=secno>2.3. </span>CSS Level 3</a>
</ul>
<li><a href="#css"><span class=secno>3. </span>Cascading Style Sheets
Definition</a>
<ul class=toc>
<li><a href="#partial"><span class=secno>3.1. </span>Partial
Implementations</a>
<li><a href="#profiles"><span class=secno>3.2. </span>CSS Profiles</a>
<li><a href="#experimental"><span class=secno>3.3. </span>Experimental
Implementations</a>
<li><a href="#testing"><span class=secno>3.4. </span>Non-Experimental
Implementations</a>
</ul>
<li><a href="#indices"><span class=secno>4. </span>Indices</a>
<ul class=toc>
<li><a href="#properties"><span class=secno>4.1. </span>Property
Index</a>
<li><a href="#selectors"><span class=secno>4.2. </span>Selector
Index</a>
<li><a href="#at-rules"><span class=secno>4.3. </span>At-Rule Index</a>
</ul>
</ul>
<!--end-toc-->
</nav>
<h2 id=intro><span class=secno>1. </span>Introduction</h2>
<p>When the first CSS specification was published, all of CSS was contained
in one document that defined CSS Level 1. CSS Level 2 was defined also by
a single, multi-chapter document. However for CSS beyond Level 2, the CSS
Working Group chose to adopt a modular approach, where each module defines
a part of CSS, rather than to define a single monolithic specification.
This breaks the specification into more manageable chunks and allows more
immediate, incremental improvement to CSS.
<p>Since different CSS modules are at different levels of stability, the
CSS Working Group has chosen to publish this profile to define the current
scope and state of Cascading Style Sheets as of late 2010. This profile
includes only specifications that we consider stable <em>and</em> for
which we have enough implementation experience that we are sure of that
stability.
<p>Note that this is not intended to be a CSS Desktop Browser Profile:
inclusion in this profile is based on feature stability only and not on
expected use or Web browser adoption. This profile defines CSS in its most
complete form.
<p>Note also that although we don't anticipate significant changes to the
specifications that form this snapshot, their inclusion does are not mean
they are frozen. The Working Group will continue to address problems as
they are found in these specs. Implementers should monitor <a
href="http://lists.w3.org/Archives/Public/www-style/">www-style</a> and/or
the <a href="http://www.w3.org/blog/CSS">CSS Working Group Blog</a> for
any resulting changes, corrections, or clarifications.
<h3 id=w3c-process><span class=secno>1.1. </span>The W3C Process and CSS</h3>
<p><em>This section is non-normative.</em>
<p>In the <a href="http://www.w3.org/2005/10/Process-20051014/">W3C
Process</a>, a Recommendation-track document passes through five levels of
stability, summarized below:
<dl style="list-style-type: decimal">
<dt>Working Draft (WD)
<dd>Published during the process of drafting the specification, the
purpose of a public Working Draft is to create a snapshot of the
specification's current state and to solicit input from the W3C and the
public. The document is known to be unstable, and is often incomplete.
<dt>Last Call Working Draft (LC or LCWD)
<dd>By publishing a Last Call Working Draft, a working group is expressing
that they consider the spec to be complete and all issues to be resolved.
Publishing a Last Call Working Draft announces that this specification
will move toward Candidate Recommendation unless significant issues are
brought up. The Last Call period is a last chance for others to submit
issues before the transition to CR.
<dt>Candidate Recommendation (CR)
<dd>By publishing a Candidate Recommendation, a working group is
expressing that have resolved all known issues and they believe the spec
is ready for implementation.
<dt>Proposed Recommendation (PR)
<dd>To exit CR and enter this stage, the spec needs a comprehensive test
suite and implementation reports proving that every feature in the spec
is interoperably implemented in at least two shipping implementations.
Entering the Proposed Recommendation stage signals to the W3C that these
requirements have been met. Once the W3C officially approves the
specification, it becomes a Recommendation.
<dt>Recommendation (REC)
<dd>This is the final stage. At this point there should need to be no more
changes.
</dl>
<p>In the CSSWG's experience, the recommendation track is not linear. The
wider review triggered by an LCWD often results in at least another
working draft, possibly several. More significantly, our experience is
that many specs enter CR twice, because implementation testing often
uncovers significant problems in the spec and thus pushes it back to
working draft. Additionally, fixing even minor problems forces a CR to
re-enter the Working Draft stage. As a result, although the CSSWG has a
clear idea of the stability of the CSS specs, it is very difficult for
someone outside the working group to come to that same understanding based
on a specification's official status. The CSS Working Group's motivation
for creating this document is thus to communicate to others our
understanding of the state of CSS.
<h2 id=css-levels><span class=secno>2. </span>CSS Levels</h2>
<p>Cascading Style Sheets does not have versions in the traditional sense;
instead it has <dfn id=levels>levels</dfn>. Each level of CSS builds on
the previous, refining definitions and adding features. The feature set of
each higher level is a superset of any lower level, and the behavior
allowed for a given feature in a higher level is a subset of that allowed
in the lower levels. A user agent conforming to a higher level of CSS is
thus also conformant to all lower levels.
<h3 id=css1><span class=secno>2.1. </span>CSS Level 1</h3>
<p>The CSS Working Group considers the <a
href="http://www.w3.org/TR/2008/REC-CSS1-20080411/">CSS1 specification</a>
to be obsolete. <dfn id=css-level-1>CSS Level 1</dfn> is defined as all
the features defined in the CSS1 specification (properties, values,
at-rules, etc), but using the syntax and definitions in the <a
href="http://www.w3.org/TR/CSS21/">CSS2.1 specification</a>. <a
href="http://www.w3.org/TR/css-style-attr/">CSS Style Attributes</a>
defines its inclusion in element-specific style attributes.
<h3 id=css2><span class=secno>2.2. </span>CSS Level 2</h3>
<p>Although the <a href="http://www.w3.org/TR/2008/REC-CSS2-20080411/">CSS2
specification</a> is technically a W3C Recommendation, it passed into the
Recommendation stage before the W3C had defined the Candidate
Recommendation stage. Over time implementation experience and further
review has brought to light many problems in the CSS2 specification, so
instead of expanding an already <a
href="http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata.html">unwieldy
errata list</a>, the CSS Working Group chose to define <cite>CSS Level 2
Revision 1</cite> (CSS2.1). In case of any conflict between the two specs
CSS2.1 contains the definitive definition.
<p>Once CSS2.1 became Candidate Recommendation—effectively though not
officially the same level of stability as CSS2—obsoleted the CSS2
Recommendation. Features in CSS2 that were dropped from CSS2.1 should be
considered to be at the Candidate Recommendation stage, but note that many
of these have been or will be pulled into a CSS Level 3 working draft, in
which case that specification will, once it reaches CR, obsolete the
definitions in CSS2.
<p>The <a href="http://www.w3.org/TR/CSS21/">CSS2.1 specification</a>
defines <dfn id=css-level-2>CSS Level 2</dfn> and the <a
href="http://www.w3.org/TR/css-style-attr/">CSS Style Attributes
specification</a> defines its inclusion in element-specific style
attributes.
<h3 id=css3><span class=secno>2.3. </span>CSS Level 3</h3>
<p><em>This section is non-normative.</em>
<p>CSS Level 3 builds on CSS Level 2 module by module, using the CSS2.1
specification as its core. Each module adds functionality and/or replaces
part of the CSS2.1 specification. The CSS Working Group intends that the
new CSS modules will not contradict the CSS2.1 specification: only that
they will add functionality and refine definitions. As each module is
completed, it will be plugged in to the existing system of CSS2.1 plus
previously-completed modules.
<p>From this level on modules are levelled independently: for example
Selectors Level 4 may well be defined before CSS Line Module Level 3.
<h2 id=css><span class=secno>3. </span>Cascading Style Sheets Definition</h2>
<p>As of 2010, <dfn id=cascading-style-sheets-css>Cascading Style Sheets
(CSS)</dfn> is defined by the following specifications.
<ol>
<li><a href="http://www.w3.org/TR/CSS21/">CSS Level 2 Revision 1</a>
(including errata)
<li><a href="http://www.w3.org/TR/css-style-attr/">CSS Style
Attributes</a>
<li><a href="http://www.w3.org/TR/css3-mediaqueries/">Media Queries Level
3</a>
<li><a href="http://www.w3.org/TR/css3-namespace/">CSS Namespaces</a>
<li><a href="http://www.w3.org/TR/css3-selectors/">Selectors Level 3</a>
<li><a href="http://www.w3.org/TR/css3-color/">CSS Color Level 3</a>
</ol>
<h3 id=partial><span class=secno>3.1. </span>Partial Implementations</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 property 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.
<h3 id=profiles><span class=secno>3.2. </span>CSS Profiles</h3>
<p>Not all implementations will implement all functionality defined in CSS.
For example, an implementation may choose to implement only the
functionality required by a CSS Profile. Profiles define a subset of CSS
considered fundamental for a specific class of CSS implementations. The
W3C CSS Working Group defines the following CSS profiles:
<ul>
<li><a href="http://www.w3.org/TR/css-mobile/">CSS Mobile Profile 2.0</a>
<li><a href="http://www.w3.org/TR/css-print/">CSS Print Profile 1.0</a>
<li><a href="http://www.w3.org/TR/css-tv">CSS TV Profile 1.0</a>
</ul>
<h3 id=experimental><span class=secno>3.3. </span>Experimental
Implementations</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>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 class=note>For legacy reasons, certain experimental CSS properties do
not follow this prefixing convention. Two common examples are the
‘<code class=property>word-wrap</code>’ and ‘<code
class=property>text-overflow</code>’ properties, which were
introduced unprefixed by Microsoft Internet Explorer prior to the
introduction of the vendor prefixing policy in CSS2.1 and were
subsequently implemented unprefixed by other browsers, creating a
dependency on the unprefixed names despite the lack of a W3C spec. Any
other legacy exceptions should be made in consultation with the CSS
Working Group.
<h3 id=testing><span class=secno>3.4. </span>Non-Experimental
Implementations</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>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>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>CSS2.1 implementations are encouraged, but not required, to submit an
implementation report.
<h2 id=indices><span class=secno>4. </span>Indices</h2>
<p><em>These sections are non-normative.</em>
<h3 id=properties><span class=secno>4.1. </span>Property Index</h3>
<table class=proptable>
<thead>
<tr>
<th>Name
<th>Values
<th>Initial value
<th>Applies to
<th>Inherited?
<th>Percentages
<th>Media
<tbody>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-attachment"><code>background-attachment</code></a>
<td>scroll | fixed | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>scroll
<td>
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-color"><code>background-color</code></a>
<td><a
href="http://www.w3.org/TR/css3-color/#colorunits"><color></a> |
<a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>transparent
<td>
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-image"><code>background-image</code></a>
<td><a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-uri"><uri></a>
| none | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>none
<td>
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-position"><code>background-position</code></a>
<td>[ [ <a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-percentage"><percentage></a>
| <a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-length"><length></a>
| left | center | right ] [ <a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-percentage"><percentage></a>
| <a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-length"><length></a>
| top | center | bottom ]? ] | [ [ left | center | right ] || [ top |
center | bottom ] ] | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>0% 0%
<td>
<td>no
<td>refer to the size of the box itself
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-repeat"><code>background-repeat</code></a>
<td>repeat | repeat-x | repeat-y | no-repeat | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>repeat
<td>
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/colors.html#propdef-background"><code>background</code></a>
<td>[<a
href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-color">‘<code
class=property>background-color</code>’</a> || <a
href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-image">‘<code
class=property>background-image</code>’</a> || <a
href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-repeat">‘<code
class=property>background-repeat</code>’</a> || <a
href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-attachment">‘<code
class=property>background-attachment</code>’</a> || <a
href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-position"><code>background-position</code></a>]
| <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>see individual properties
<td>
<td>no
<td>allowed on ‘<code
class=property>background-position</code>’
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/tables.html#propdef-border-collapse"><code>border-collapse</code></a>
<td>collapse | separate | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>separate
<td>‘<code class=property>table</code>’ and ‘<code
class=property>inline-table</code>’ elements
<td>yes
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-color"><code>border-color</code></a>
<td>[ <a
href="http://www.w3.org/TR/css3-color/#colorunits"><color></a>
]{1,4} | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>see individual properties
<td>
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/tables.html#propdef-border-spacing"><code>border-spacing</code></a>
<td><a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-length"><length></a>
<a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-length"><length></a>?
| <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>0
<td>‘<code class=property>table</code>’ and ‘<code
class=property>inline-table</code>’ elements
<td>yes
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-style"><code>border-style</code></a>
<td><a
href="http://www.w3.org/TR/CSS21/box.html#value-def-border-style"><border-style></a>{1,4}
| <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>see individual properties
<td>
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-top"><code>border-top</code></a>
<a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-right"><code>border-right</code></a>
<a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-bottom"><code>border-bottom</code></a>
<a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-left"><code>border-left</code></a>
<td>[ <a
href="http://www.w3.org/TR/CSS21/box.html#value-def-border-width"><border-width></a>
|| <a
href="http://www.w3.org/TR/CSS21/box.html#value-def-border-style"><border-style></a>
|| <a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-top-color"><code>border-top-color</code></a>
] | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>see individual properties
<td>
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-top-color"><code>border-top-color</code></a>
<a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-right-color"><code>border-right-color</code></a>
<a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-bottom-color"><code>border-bottom-color</code></a>
<a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-left-color"><code>border-left-color</code></a>
<td><a
href="http://www.w3.org/TR/css3-color/#colorunits"><color></a> |
<a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>the value of the ‘<code class=property>color</code>’
property
<td>
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-top-style"><code>border-top-style</code></a>
<a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-right-style"><code>border-right-style</code></a>
<a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-bottom-style"><code>border-bottom-style</code></a>
<a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-left-style"><code>border-left-style</code></a>
<td><a
href="http://www.w3.org/TR/CSS21/box.html#value-def-border-style"><border-style></a>
| <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>none
<td>
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-top-width"><code>border-top-width</code></a>
<a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-right-width"><code>border-right-width</code></a>
<a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-bottom-width"><code>border-bottom-width</code></a>
<a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-left-width"><code>border-left-width</code></a>
<td><a
href="http://www.w3.org/TR/CSS21/box.html#value-def-border-width"><border-width></a>
| <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>medium
<td>
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-width"><code>border-width</code></a>
<td><a
href="http://www.w3.org/TR/CSS21/box.html#value-def-border-width"><border-width></a>{1,4}
| <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>see individual properties
<td>
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border"><code>border</code></a>
<td>[ <a
href="http://www.w3.org/TR/CSS21/box.html#value-def-border-width"><border-width></a>
|| <a
href="http://www.w3.org/TR/CSS21/box.html#value-def-border-style"><border-style></a>
|| <a
href="http://www.w3.org/TR/CSS21/box.html#propdef-border-top-color"><code>border-top-color</code></a>
] | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>see individual properties
<td>
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/visuren.html#propdef-bottom"><code>bottom</code></a>
<td><a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-length"><length></a>
| <a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-percentage"><percentage></a>
| auto | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>auto
<td>positioned elements
<td>no
<td>refer to height of containing block
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/tables.html#propdef-caption-side"><code>caption-side</code></a>
<td>top | bottom | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>top
<td>‘<code class=property>table-caption</code>’ elements
<td>yes
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/visuren.html#propdef-clear"><code>clear</code></a>
<td>none | left | right | both | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>none
<td>block-level elements
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/visufx.html#propdef-clip"><code>clip</code></a>
<td><a
href="http://www.w3.org/TR/CSS21/visufx.html#value-def-shape"><shape></a>
| auto | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>auto
<td>absolutely positioned elements
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/css3-color/#foreground"><code>color</code></a>
<td><a
href="http://www.w3.org/TR/css3-color/#colorunits"><color></a> |
<a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>depends on user agent
<td>
<td>yes
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#visual-media-group">visual</a>
<tr>
<th scope=row> <a
href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"><code>content</code></a>
<td>normal | none | [ <a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-string"><string></a>
| <a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-uri"><uri></a>
| <a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-counter"><counter></a>
| attr(<a
href="http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier"><identifier></a>)
| open-quote | close-quote | no-open-quote | no-close-quote ]+ | <a
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
<td>normal
<td>:before and :after pseudo-elements
<td>no
<td>
<td><a
href="http://www.w3.org/TR/CSS21/media.html#all-media-group">all</a>
<tr>