Skip to content

Commit b91fb31

Browse files
committed
[css-transitions] Add a note explaining that values from transitions are inherited normally.
This implements the remainder of part D of the proposal in http://lists.w3.org/Archives/Public/www-style/2013Mar/0297.html as resolved in http://lists.w3.org/Archives/Public/www-style/2013Jun/0682.html
1 parent 797266b commit b91fb31

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

css-transitions/Overview.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,11 @@ <h2 id=application><span class=secno>4. </span> Application of transitions</h2>
10731073
at the level defined for CSS Transitions in <a href="#CSS3CASCADE"
10741074
rel=biblioentry>[CSS3CASCADE]<!--{{CSS3CASCADE}}--></a>.
10751075

1076+
<p class=note> Note that this means that computed values resulting from CSS
1077+
transitions can inherit to descendants just like any other computed
1078+
values. In the normal case, this means that a transition of an inherited
1079+
property applies to descendant elements just as an author would expect.
1080+
10761081
<p> Implementations must add this value to the cascade if and only if that
10771082
property is not currently undergoing a CSS Animation (<a
10781083
href="#CSS3-ANIMATIONS"
@@ -1761,6 +1766,9 @@ <h2 id=changes><span class=secno>9. </span>Changes since Working Draft of
17611766
<li>Add a note pointing out that the above definitions imply that
17621767
transitions can start simultaneously, from the same change, on
17631768
ancestors and descendants.
1769+
1770+
<li>Define that CSS transitions participate in CSS's cascading and
1771+
inheritance model
17641772
</ul>
17651773
</ul>
17661774

css-transitions/Overview.src.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,17 @@ <h2 id="application">
10851085
at the level defined for CSS Transitions in [[CSS3CASCADE]].
10861086
</p>
10871087

1088+
<p class="note">
1089+
Note that this means that computed values
1090+
resulting from CSS transitions
1091+
can inherit to descendants just like
1092+
any other computed values.
1093+
In the normal case, this means that
1094+
a transition of an inherited property
1095+
applies to descendant elements
1096+
just as an author would expect.
1097+
</p>
1098+
10881099
<p>
10891100
Implementations must add this value to the cascade
10901101
if and only if
@@ -1708,6 +1719,7 @@ <h2 id="changes">Changes since Working Draft of 12 February 2013</h2>
17081719
<li>Define the <span>before-change style</span> and <span>after-change style</span> used for the style comparison, using the new concept of a <span>style change event</span>.
17091720
<li>Define that a CSS transition for a property does not affect computed style when a CSS Animation for the same property is running.
17101721
<li>Add a note pointing out that the above definitions imply that transitions can start simultaneously, from the same change, on ancestors and descendants.
1722+
<li>Define that CSS transitions participate in CSS's cascading and inheritance model
17111723
</ul>
17121724
</ul>
17131725

0 commit comments

Comments
 (0)