@@ -133,6 +133,10 @@ <h2 class="no-num no-toc" id=table-of-contents> Table of contents</h2>
133133
134134 < li > < a href ="#shorthand "> < span class =secno > 3. </ span > Shorthand
135135 Properties</ a >
136+ < ul class =toc >
137+ < li > < a href ="#all-shorthand "> < span class =secno > 3.1. </ span > Resetting
138+ All Properties: the ‘< code class =css > all</ code > ’ property</ a >
139+ </ ul >
136140
137141 < li > < a href ="#cascade-and-inheritance "> < span class =secno > 4. </ span >
138142 Cascading and Inheritance</ a >
@@ -274,8 +278,8 @@ <h2 id=at-import><span class=secno>2. </span> Importing style sheets: the
274278 rel =biblioentry > [MEDIAQ]<!--{{!MEDIAQ}}--> </ a > .
275279
276280 < p > In the absence of any media queries, the import is unconditional.
277- Specifying ‘< code class =css > all</ code > ’ for the medium has the same
278- effect.
281+ Specifying ‘< a href =" #all " > < code class =css > all</ code > </ a > ’ for the
282+ medium has the same effect.
279283
280284 < h2 id =shorthand > < span class =secno > 3. </ span > Shorthand Properties</ h2 >
281285
@@ -297,12 +301,12 @@ <h2 id=shorthand><span class=secno>3. </span> Shorthand Properties</h2>
297301
298302 < pre >
299303h1 {
300- font-weight: bold;
301- font-size: 12pt;
302- line-height: 14pt;
303- font-family: Helvetica;
304- font-variant: normal;
305- font-style: normal;
304+ font-weight: bold;
305+ font-size: 12pt;
306+ line-height: 14pt;
307+ font-family: Helvetica;
308+ font-variant: normal;
309+ font-style: normal;
306310}</ pre >
307311
308312 < p > can therefore be rewritten as
@@ -330,15 +334,83 @@ <h2 id=shorthand><span class=secno>3. </span> Shorthand Properties</h2>
330334 values.)
331335
332336 < p > If a shorthand is specified as one of the < a
333- href ="http://www.w3.org/TR/css3-values/ "> CSS-wide keywords </ a > , it sets
334- all of its sub-properties to that keyword. (Note that these keywords
335- cannot be combined with other values in a single declaration, not even in
336- a shorthand.)
337+ href ="http://www.w3.org/TR/css3-values/#common-keywords "> CSS-wide
338+ keywords </ a > , it sets all of its sub-properties to that keyword. (Note
339+ that these keywords cannot be combined with other values in a single
340+ declaration, not even in a shorthand.)
337341
338342 < p > Declaring a shorthand property to be ‘< code
339343 class =css > !important</ code > ’ is equivalent to declaring all of its
340344 sub-properties to be "!important".
341345
346+ < h3 id =all-shorthand > < span class =secno > 3.1. </ span > Resetting All
347+ Properties: the ‘< a href ="#all "> < code class =css > all</ code > </ a > ’
348+ property</ h3 >
349+
350+ < table class =propdef >
351+ < tbody >
352+ < tr >
353+ < th > Name:
354+
355+ < td > < dfn id =all > all</ dfn >
356+
357+ < tr >
358+ < th > Value:
359+
360+ < td > initial | inherit | default
361+
362+ < tr >
363+ < th > Initial:
364+
365+ < td > See individual properties
366+
367+ < tr >
368+ < th > Applies to:
369+
370+ < td > See individual properties
371+
372+ < tr >
373+ < th > Inherited:
374+
375+ < td > See individual properties
376+
377+ < tr >
378+ < th > Percentages:
379+
380+ < td > See individual properties
381+
382+ < tr >
383+ < th > Media:
384+
385+ < td > See individual properties
386+
387+ < tr >
388+ < th > Computed value:
389+
390+ < td > See individual properties
391+
392+ < tr >
393+ < th > Animatable:
394+
395+ < td > See individual properties
396+ </ table >
397+
398+ < p > The ‘< a href ="#all "> < code class =css > all</ code > </ a > ’ property is a
399+ shorthand that resets < em title =""> all</ em > CSS properties. It only
400+ accepts the < a
401+ href ="http://www.w3.org/TR/css3-values/#common-keywords "> CSS-wide
402+ keywords</ a > .
403+
404+ < div class =example >
405+ < p > For example, if an author specifies ‘< code class =css > all:
406+ default</ code > ’ on an element it will block all inheritance and reset
407+ all properties, as if no rules appeared in the author level of the
408+ cascade.
409+
410+ < p > This can be useful for the root element of a "widget" included in a
411+ page, which does not wish to inherit the styles of the outer page.
412+ </ div >
413+
342414 < h2 id =cascade-and-inheritance > < span class =secno > 4. </ span > Cascading and
343415 Inheritance</ h2 >
344416
@@ -748,7 +820,7 @@ <h3 id=stages-examples><span class=secno>5.5. </span> Examples</h3>
748820
749821 < th > Property
750822
751- < th > Winning declaration <!-- <th>Cascaded value -->
823+ < th > Winning declaration <!-- <th>Cascaded value -->
752824
753825 < th > Specified value
754826
@@ -764,8 +836,7 @@ <h3 id=stages-examples><span class=secno>5.5. </span> Examples</h3>
764836
765837 < th > ‘< code class =property > text-align</ code > ’
766838
767- < td > < code class =declaration > text-align: left</ code >
768- <!-- <td>''left''-->
839+ < td > < code class =declaration > text-align: left</ code > <!-- <td>''left''-->
769840
770841 < td > ‘< code class =css > left</ code > ’
771842
@@ -784,7 +855,7 @@ <h3 id=stages-examples><span class=secno>5.5. </span> Examples</h3>
784855 class =property > border-left-width</ code > ’
785856
786857 < td > < code class =declaration > border-width: inherit</ code >
787- <!-- <td>''inherit'' -->
858+ <!-- <td>''inherit'' -->
788859
789860 < td class =say > ‘< code class =css > 4.2px</ code > ’
790861
@@ -799,7 +870,7 @@ <h3 id=stages-examples><span class=secno>5.5. </span> Examples</h3>
799870
800871 < th > ‘< code class =property > width</ code > ’
801872
802- < td > < small > (none)</ small > <!-- <td><small>(none)</small>-->
873+ < td > < small > (none)</ small > <!-- <td><small>(none)</small>-->
803874
804875 < td > ‘< code class =css > auto</ code > ’ < small > (initial value)</ small >
805876
@@ -815,7 +886,7 @@ <h3 id=stages-examples><span class=secno>5.5. </span> Examples</h3>
815886 < th > ‘< code class =property > list-style-position</ code > ’
816887
817888 < td > < code class =declaration > list-style-position: inherit</ code >
818- <!-- <td>''inherit'' -->
889+ <!-- <td>''inherit'' -->
819890
820891 < td class =say > ‘< code class =css > inside</ code > ’
821892
@@ -831,7 +902,7 @@ <h3 id=stages-examples><span class=secno>5.5. </span> Examples</h3>
831902 < th > ‘< code class =property > list-style-position</ code > ’
832903
833904 < td > < code class =declaration > list-style-position: initial</ code >
834- <!-- <td>''initial''-->
905+ <!-- <td>''initial''-->
835906
836907 < td > ‘< code class =css > outside</ code > ’ < small > (initial value)</ small >
837908
@@ -847,7 +918,7 @@ <h3 id=stages-examples><span class=secno>5.5. </span> Examples</h3>
847918 < th > ‘< code class =property > font-size</ code > ’
848919
849920 < td > < code class =declaration > font-size: 1.2em</ code >
850- <!-- <td>''1.2em''-->
921+ <!-- <td>''1.2em''-->
851922
852923 < td > ‘< code class =css > 1.2em</ code > ’
853924
@@ -862,7 +933,7 @@ <h3 id=stages-examples><span class=secno>5.5. </span> Examples</h3>
862933
863934 < th > ‘< code class =property > width</ code > ’
864935
865- < td > < code class =declaration > width: 80%</ code > <!-- <td>''80%''-->
936+ < td > < code class =declaration > width: 80%</ code > <!-- <td>''80%''-->
866937
867938 < td > ‘< code class =css > 80%</ code > ’
868939
@@ -877,7 +948,7 @@ <h3 id=stages-examples><span class=secno>5.5. </span> Examples</h3>
877948
878949 < th > ‘< code class =property > width</ code > ’
879950
880- < td > < code class =declaration > width: auto</ code > <!-- <td>''auto''-->
951+ < td > < code class =declaration > width: auto</ code > <!-- <td>''auto''-->
881952
882953 < td > ‘< code class =css > auto</ code > ’
883954
@@ -892,7 +963,7 @@ <h3 id=stages-examples><span class=secno>5.5. </span> Examples</h3>
892963
893964 < th > ‘< code class =property > height</ code > ’
894965
895- < td > < code class =declaration > height: auto</ code > <!-- <td>''auto''-->
966+ < td > < code class =declaration > height: auto</ code > <!-- <td>''auto''-->
896967
897968 < td > ‘< code class =css > auto</ code > ’
898969
@@ -907,7 +978,7 @@ <h3 id=stages-examples><span class=secno>5.5. </span> Examples</h3>
907978
908979 < th > ‘< code class =property > page-break-after</ code > ’
909980
910- < td > < small > (none)</ small > <!-- <td><small>(none)</small>-->
981+ < td > < small > (none)</ small > <!-- <td><small>(none)</small>-->
911982
912983 < td > ‘< code class =css > auto</ code > ’ < small > (initial value)</ small >
913984
@@ -922,7 +993,7 @@ <h3 id=stages-examples><span class=secno>5.5. </span> Examples</h3>
922993
923994 < th > ‘< code class =property > orphans</ code > ’
924995
925- < td > < code class =declaration > orphans: 3</ code > <!-- <td>''3''-->
996+ < td > < code class =declaration > orphans: 3</ code > <!-- <td>''3''-->
926997
927998 < td > ‘< code class =css > 3</ code > ’
928999
@@ -1048,6 +1119,8 @@ <h2 class=no-num id=index>Index</h2>
10481119 < li > actual value, < a href ="#actual-value "
10491120 title ="actual value "> < strong > 5.4.</ strong > </ a >
10501121
1122+ < li > all, < a href ="#all " title =all > < strong > 3.1.</ strong > </ a >
1123+
10511124 < li > cascaded value, < a href ="#cascaded-value0 "
10521125 title ="cascaded value "> < strong > 4.2.4.</ strong > </ a >
10531126
@@ -1110,5 +1183,19 @@ <h2 class=no-num id=property-index>Property index</h2>
11101183 < th > Media
11111184
11121185 < tbody >
1186+ < tr >
1187+ < th > < a class =property href ="#all "> all</ a >
1188+
1189+ < td > initial | inherit | default
1190+
1191+ < td > See individual properties
1192+
1193+ < td > See individual properties
1194+
1195+ < td > See individual properties
1196+
1197+ < td > See individual properties
1198+
1199+ < td > See individual properties
11131200 </ table >
11141201 <!--end-properties-->
0 commit comments