Skip to content

Commit 0820456

Browse files
committed
[css-transitions] Put example inside note, to make it clearer what the example is of.
1 parent fe896a1 commit 0820456

File tree

2 files changed

+47
-32
lines changed

2 files changed

+47
-32
lines changed

css-transitions/Overview.bs

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -530,30 +530,35 @@ url: http://dev.w3.org/csswg/css-color-3/#html4; type: value; text: green;
530530
there is never both a <a>running transition</a> and
531531
a <a>completed transition</a> for the same property and element.
532532
</span>
533-
<span class="note">
533+
</p>
534+
535+
<div class="note">
536+
537+
<p>
534538
This set of completed transitions
535539
needs to be maintained
536540
in order to prevent
537541
transitions from repeating themselves in certain cases,
538542
i.e., to maintain the invariant
539543
that this specification tries to maintain
540544
that unrelated style changes do not trigger transitions.
541-
</span>
542-
</p>
545+
</p>
543546

544-
<p class="example">
545-
An example where maintaining the set of completed transitions
546-
is necessary would be a transition on
547-
an inherited property,
548-
where the parent specifies a transition of that property for
549-
a longer duration (say, ''transition: 4s text-indent'')
550-
and a child element that inherits the parent's value specifies
551-
a transition of the same property for a shorter duration
552-
(say, ''transition: 1s text-indent'').
553-
Without the maintenance of this set of completed transitions,
554-
implementations could start additional transitions on the child
555-
after the initial 1 second transition on the child completes.
556-
</p>
547+
<p class="example">
548+
An example where maintaining the set of completed transitions
549+
is necessary would be a transition on
550+
an inherited property,
551+
where the parent specifies a transition of that property for
552+
a longer duration (say, ''transition: 4s text-indent'')
553+
and a child element that inherits the parent's value specifies
554+
a transition of the same property for a shorter duration
555+
(say, ''transition: 1s text-indent'').
556+
Without the maintenance of this set of completed transitions,
557+
implementations could start additional transitions on the child
558+
after the initial 1 second transition on the child completes.
559+
</p>
560+
561+
</div>
557562

558563
<p>
559564
Various things can cause the computed style of an element to change,

css-transitions/Overview.html

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -972,31 +972,41 @@ <h2 class="heading settled" data-level="3" id="starting"><span class="secno">3.
972972
there is never both a <a data-link-type="dfn" href="#running-transition">running transition</a> and
973973
a <a data-link-type="dfn" href="#completed-transition">completed transition</a> for the same property and element.
974974
</span>
975-
<span class="note" role="note">
975+
</p>
976+
977+
978+
<div class="note" role="note">
979+
980+
981+
<p>
976982
This set of completed transitions
977983
needs to be maintained
978984
in order to prevent
979985
transitions from repeating themselves in certain cases,
980986
i.e., to maintain the invariant
981987
that this specification tries to maintain
982988
that unrelated style changes do not trigger transitions.
983-
</span>
984-
</p>
989+
</p>
990+
991+
992+
993+
<p class="example">
994+
An example where maintaining the set of completed transitions
995+
is necessary would be a transition on
996+
an inherited property,
997+
where the parent specifies a transition of that property for
998+
a longer duration (say, <a class="css" data-link-type="propdesc" href="#propdef-transition" title="transition">transition: 4s text-indent</a>)
999+
and a child element that inherits the parent’s value specifies
1000+
a transition of the same property for a shorter duration
1001+
(say, <a class="css" data-link-type="propdesc" href="#propdef-transition" title="transition">transition: 1s text-indent</a>).
1002+
Without the maintenance of this set of completed transitions,
1003+
implementations could start additional transitions on the child
1004+
after the initial 1 second transition on the child completes.
1005+
</p>
1006+
9851007

9861008

987-
<p class="example">
988-
An example where maintaining the set of completed transitions
989-
is necessary would be a transition on
990-
an inherited property,
991-
where the parent specifies a transition of that property for
992-
a longer duration (say, <a class="css" data-link-type="propdesc" href="#propdef-transition" title="transition">transition: 4s text-indent</a>)
993-
and a child element that inherits the parent’s value specifies
994-
a transition of the same property for a shorter duration
995-
(say, <a class="css" data-link-type="propdesc" href="#propdef-transition" title="transition">transition: 1s text-indent</a>).
996-
Without the maintenance of this set of completed transitions,
997-
implementations could start additional transitions on the child
998-
after the initial 1 second transition on the child completes.
999-
</p>
1009+
</div>
10001010

10011011

10021012
<p>

0 commit comments

Comments
 (0)