Skip to content

Commit 3c2dbbe

Browse files
committed
[css-cascade] Pending WG resolution, exclude 'direction' and 'unicode-bidi' from being reset by 'all'.
1 parent b698ebf commit 3c2dbbe

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

css-cascade/Overview.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,17 @@ <h3 data-level=3.1 id=all-shorthand><span class=secno>3.1 </span><span class=con
301301
</table>
302302

303303
<p>
304-
The <span class=css data-autolink=maybe>all</span> property is a <a href=#shorthand-properties>shorthand</a> that resets <em title="">all</em> CSS properties.
304+
The <span class=css data-autolink=maybe>all</span> property is a <a href=#shorthand-properties>shorthand</a> that resets <em title="">all</em> CSS properties
305+
except <a class=property data-autolink=property title=direction>direction</a> and <a class=property data-autolink=property title=unicode-bidi>unicode-bidi</a>.
305306
It only accepts the <a href=http://www.w3.org/TR/css3-values/#common-keywords>CSS-wide keywords</a>.
306307

308+
<p class=note>
309+
The excepted properties are actually markup-level features,
310+
and <a href=http://www.w3.org/TR/css3-writing-modes/#text-direction>should not be set in the author's style sheet</a>.
311+
(They exist as CSS properties only to style document languages not supported by the UA.)
312+
Authors should use the appropriate markup, such as HTML's <code>dir</code> attribute, instead.
313+
<a data-autolink=biblio data-biblio-type=normative href=#css3-writing-modes title=CSS3-WRITING-MODES>[CSS3-WRITING-MODES]</a>
314+
307315
<div class=example>
308316
<p>
309317
For example, if an author specifies <span class=css data-autolink=maybe>all: initial</span> on an element
@@ -1105,7 +1113,7 @@ <h2 class="no-num no-ref" id=references><span class=content>
11051113

11061114
<h3 class="no-num no-ref" id=normative><span class=content>
11071115
Normative References</span><a class=section-link href=#normative>§</a></h3>
1108-
<div data-fill-with=normative-references><dl><dt id=css3-animations title=CSS3-ANIMATIONS>[CSS3-ANIMATIONS]<dd>Dean Jackson; et al. <a href=http://www.w3.org/TR/2012/WD-css3-animations-20120403/>CSS Animations</a>. 3 April 2012. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2012/WD-css3-animations-20120403/>http://www.w3.org/TR/2012/WD-css3-animations-20120403/</a><dt id=css3-conditional title=CSS3-CONDITIONAL>[CSS3-CONDITIONAL]<dd>L. David Baron. <a href=http://www.w3.org/TR/2012/WD-css3-conditional-20121213/>CSS Conditional Rules Module Level 3</a>. 13 December 2012. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2012/WD-css3-conditional-20121213/>http://www.w3.org/TR/2012/WD-css3-conditional-20121213/</a><dt id=css3-transitions title=CSS3-TRANSITIONS>[CSS3-TRANSITIONS]<dd>Dean Jackson; et al. <a href=http://www.w3.org/TR/2012/WD-css3-transitions-20120403/>CSS Transitions</a>. 3 April 2012. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2012/WD-css3-transitions-20120403/>http://www.w3.org/TR/2012/WD-css3-transitions-20120403/</a><dt id=css3val title=CSS3VAL>[CSS3VAL]<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <a href=http://www.w3.org/TR/2012/CR-css3-values-20120828/>CSS Values and Units Module Level 3</a>. 28 August 2012. W3C Candidate Recommendation. (Work in progress.) URL: <a href=http://www.w3.org/TR/2012/CR-css3-values-20120828/>http://www.w3.org/TR/2012/CR-css3-values-20120828/</a><dt id=cssstyleattr title=CSSSTYLEATTR>[CSSSTYLEATTR]<dd>Tantek Çelik; Elika J. Etemad. <a href=http://www.w3.org/TR/2010/CR-css-style-attr-20101012/>CSS Style Attributes</a>. 12 October 2010. W3C Candidate Recommendation. (Work in progress.) URL: <a href=http://www.w3.org/TR/2010/CR-css-style-attr-20101012/>http://www.w3.org/TR/2010/CR-css-style-attr-20101012/</a><dt id=dom-level-2-style title=DOM-LEVEL-2-STYLE>[DOM-LEVEL-2-STYLE]<dd>Chris Wilson; Philippe Le Hégaret; Vidur Apparao. <a href=http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/>Document Object Model (DOM) Level 2 Style Specification</a>. 13 November 2000. W3C Recommendation. URL: <a href=http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/>http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/</a><dt id=mediaq title=MEDIAQ>[MEDIAQ]<dd>Florian Rivoal. <a href=http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/>Media Queries</a>. 19 June 2012. W3C Recommendation. URL: <a href=http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/>http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/</a><dt id=rfc2119 title=RFC2119>[RFC2119]<dd>S. Bradner. <a href=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <a href=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a><dt id=select title=SELECT>[SELECT]<dd>Tantek Çelik; et al. <a href=http://www.w3.org/TR/2011/REC-css3-selectors-20110929/>Selectors Level 3</a>. 29 September 2011. W3C Recommendation. URL: <a href=http://www.w3.org/TR/2011/REC-css3-selectors-20110929/>http://www.w3.org/TR/2011/REC-css3-selectors-20110929/</a></dl></div>
1116+
<div data-fill-with=normative-references><dl><dt id=css3-animations title=CSS3-ANIMATIONS>[CSS3-ANIMATIONS]<dd>Dean Jackson; et al. <a href=http://www.w3.org/TR/2012/WD-css3-animations-20120403/>CSS Animations</a>. 3 April 2012. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2012/WD-css3-animations-20120403/>http://www.w3.org/TR/2012/WD-css3-animations-20120403/</a><dt id=css3-conditional title=CSS3-CONDITIONAL>[CSS3-CONDITIONAL]<dd>L. David Baron. <a href=http://www.w3.org/TR/2012/WD-css3-conditional-20121213/>CSS Conditional Rules Module Level 3</a>. 13 December 2012. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2012/WD-css3-conditional-20121213/>http://www.w3.org/TR/2012/WD-css3-conditional-20121213/</a><dt id=css3-transitions title=CSS3-TRANSITIONS>[CSS3-TRANSITIONS]<dd>Dean Jackson; et al. <a href=http://www.w3.org/TR/2012/WD-css3-transitions-20120403/>CSS Transitions</a>. 3 April 2012. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2012/WD-css3-transitions-20120403/>http://www.w3.org/TR/2012/WD-css3-transitions-20120403/</a><dt id=css3-writing-modes title=CSS3-WRITING-MODES>[CSS3-WRITING-MODES]<dd>Elika J. Etemad; Koji Ishii. <a href=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>CSS Writing Modes Module Level 3</a>. 15 November 2012. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/</a><dt id=css3val title=CSS3VAL>[CSS3VAL]<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <a href=http://www.w3.org/TR/2012/CR-css3-values-20120828/>CSS Values and Units Module Level 3</a>. 28 August 2012. W3C Candidate Recommendation. (Work in progress.) URL: <a href=http://www.w3.org/TR/2012/CR-css3-values-20120828/>http://www.w3.org/TR/2012/CR-css3-values-20120828/</a><dt id=cssstyleattr title=CSSSTYLEATTR>[CSSSTYLEATTR]<dd>Tantek Çelik; Elika J. Etemad. <a href=http://www.w3.org/TR/2010/CR-css-style-attr-20101012/>CSS Style Attributes</a>. 12 October 2010. W3C Candidate Recommendation. (Work in progress.) URL: <a href=http://www.w3.org/TR/2010/CR-css-style-attr-20101012/>http://www.w3.org/TR/2010/CR-css-style-attr-20101012/</a><dt id=dom-level-2-style title=DOM-LEVEL-2-STYLE>[DOM-LEVEL-2-STYLE]<dd>Chris Wilson; Philippe Le Hégaret; Vidur Apparao. <a href=http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/>Document Object Model (DOM) Level 2 Style Specification</a>. 13 November 2000. W3C Recommendation. URL: <a href=http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/>http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/</a><dt id=mediaq title=MEDIAQ>[MEDIAQ]<dd>Florian Rivoal. <a href=http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/>Media Queries</a>. 19 June 2012. W3C Recommendation. URL: <a href=http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/>http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/</a><dt id=rfc2119 title=RFC2119>[RFC2119]<dd>S. Bradner. <a href=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <a href=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a><dt id=select title=SELECT>[SELECT]<dd>Tantek Çelik; et al. <a href=http://www.w3.org/TR/2011/REC-css3-selectors-20110929/>Selectors Level 3</a>. 29 September 2011. W3C Recommendation. URL: <a href=http://www.w3.org/TR/2011/REC-css3-selectors-20110929/>http://www.w3.org/TR/2011/REC-css3-selectors-20110929/</a></dl></div>
11091117

11101118
<h3 class="no-num no-ref" id=informative><span class=content>
11111119
Informative References</span><a class=section-link href=#informative>§</a></h3>

css-cascade/Overview.src.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h1>CSS Cascading and Inheritance Level 3</h1>
1212
Previous Version: http://www.w3.org/TR/2013/WD-css3-cascade-20130103/
1313
Previous Version: http://www.w3.org/TR/2005/WD-css3-cascade-20051215/
1414
Abstract: This CSS module describes how to collate style rules and assign values to all properties on all elements. By way of cascading and inheritance, values are propagated for all properties on all elements.
15-
Ignored Properties: font-size, border-bottom-width, height, font, font-style, border-top-width, width, break-before, font-weight, red, flex, auto, font-variant, page-break-after, font-family, text-align, default, font-size-adjust, orphans, border-right-width, line-height, border-left-width, list-style-position
15+
Ignored Properties: font-size, border-bottom-width, height, font, font-style, border-top-width, width, break-before, font-weight, red, flex, auto, font-variant, page-break-after, font-family, text-align, default, font-size-adjust, orphans, border-right-width, line-height, border-left-width, list-style-position, unicode-bidi, direction
1616
Ignored Terms: flex items
1717
</pre>
1818

@@ -217,9 +217,17 @@ <h3 id="all-shorthand">
217217
</table>
218218

219219
<p>
220-
The ''all'' property is a <i>shorthand</i> that resets <em title=''>all</em> CSS properties.
220+
The ''all'' property is a <i>shorthand</i> that resets <em title=''>all</em> CSS properties
221+
except 'direction' and 'unicode-bidi'.
221222
It only accepts the <a href="http://www.w3.org/TR/css3-values/#common-keywords">CSS-wide keywords</a>.
222223

224+
<p class='note'>
225+
The excepted properties are actually markup-level features,
226+
and <a href="http://www.w3.org/TR/css3-writing-modes/#text-direction">should not be set in the author's style sheet</a>.
227+
(They exist as CSS properties only to style document languages not supported by the UA.)
228+
Authors should use the appropriate markup, such as HTML's <code>dir</code> attribute, instead.
229+
[[!CSS3-WRITING-MODES]]
230+
223231
<div class='example'>
224232
<p>
225233
For example, if an author specifies ''all: initial'' on an element

0 commit comments

Comments
 (0)