Skip to content

Commit d757498

Browse files
committed
[css-cascade] Clarify that custom properties are not reset by 'all'. #2518
1 parent 4592966 commit d757498

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

css-cascade-3/Overview.bs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,10 @@ Resetting All Properties: the 'all' property</h3>
238238
The 'all' property is a <a>shorthand</a> that resets <em>all</em> CSS properties
239239
except 'direction' and 'unicode-bidi'.
240240
It only accepts the <a href="https://www.w3.org/TR/css3-values/#common-keywords">CSS-wide keywords</a>.
241+
It does not reset <a>custom properties</a> [[css-variables-1]].
241242

242-
Note: The excepted properties are actually markup-level features,
243+
Note: The excepted CSS properties 'direction' and 'unicode-bidi'
244+
are actually markup-level features,
243245
and <a href="https://www.w3.org/TR/css3-writing-modes/#text-direction">should not be set in the author's style sheet</a>.
244246
(They exist as CSS properties only to style document languages not supported by the UA.)
245247
Authors should use the appropriate markup, such as HTML's <code>dir</code> attribute, instead.
@@ -905,6 +907,17 @@ Erasing All Declarations: the ''unset'' keyword</h4>
905907
<h2 id="changes">
906908
Changes</h2>
907909

910+
<h3 id="changes-2016">
911+
Changes Since the 19 May 2016 Candidate Recommendation</h3>
912+
913+
The following changes were made to this specification since the
914+
<a href="https://www.w3.org/TR/2016/CR-css-cascade-3-20160519/">19 May 2016 Candidate Recommendation</a>:
915+
916+
<ul>
917+
<li>Clarified that <a>custom properties</a> are not reset by the 'all' shorthand.
918+
(<a href="https://github.com/w3c/csswg-drafts/issues/2518">2518</a>)
919+
</ul>
920+
908921
<h3 id="changes-2013">
909922
Changes Since the 3 October 2013 Candidate Recommendation</h3>
910923

css-cascade-4/Overview.bs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,14 @@ Resetting All Properties: the 'all' property</h3>
370370
<td>See individual properties
371371
</table>
372372

373-
The 'all' property is a <a>shorthand</a> that resets <em>all</em> CSS properties
373+
The 'all' property is a <a>shorthand</a>
374+
that resets <em>all</em> CSS properties
374375
except 'direction' and 'unicode-bidi'.
375376
It only accepts the <a href="https://www.w3.org/TR/css3-values/#common-keywords">CSS-wide keywords</a>.
377+
It does not reset <a>custom properties</a> [[css-variables-1]].
376378

377-
Note: The excepted properties are actually markup-level features,
379+
Note: The excepted CSS properties 'direction' and 'unicode-bidi'
380+
are actually markup-level features,
378381
and <a href="https://www.w3.org/TR/css3-writing-modes/#text-direction">should not be set in the author's style sheet</a>.
379382
(They exist as CSS properties only to style document languages not supported by the UA.)
380383
Authors should use the appropriate markup, such as HTML's <code>dir</code> attribute, instead.
@@ -1022,7 +1025,9 @@ Changes</h2>
10221025
Changes since the <a href="https://www.w3.org/TR/2016/CR-css-cascade-4-20160114/">14 January 2016 Working Draft</a> include:
10231026

10241027
<ul>
1025-
<li>Clarify that ''revert'' only affects the cascaded value, not the inherited value.
1028+
<li>Clarified that ''revert'' only affects the cascaded value, not the inherited value.
1029+
<li>Clarified that <a>custom properties</a> are not reset by the 'all' shorthand.
1030+
(<a href="https://github.com/w3c/csswg-drafts/issues/2518">2518</a>)
10261031
</ul>
10271032

10281033
Changes since the <a href="https://www.w3.org/TR/2015/WD-css-cascade-4-20150421/">21 April 2015 Working Draft</a> include:

0 commit comments

Comments
 (0)