Skip to content

Commit 6b75389

Browse files
committed
[css-transitions] Fix formatting of TransitionEvent section to match CSS Animations spec
1 parent f09d150 commit 6b75389

1 file changed

Lines changed: 34 additions & 66 deletions

File tree

css-transitions/Overview.bs

Lines changed: 34 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,81 +1190,49 @@ with changes to transitions.
11901190
Each event provides the name of the property the transition is
11911191
associated with as well as the duration of the transition.
11921192

1193-
<dl>
1194-
<dt>
1195-
<b>Interface <dfn interface id="Events-TransitionEvent">TransitionEvent</dfn></b>
1196-
</dt>
1197-
<dd>
1198-
<p>
1199-
The {{TransitionEvent}} interface provides specific contextual information associated with transitions.
1200-
</p>
1201-
<dl>
1202-
<dt>
1203-
<b>IDL Definition</b>
1204-
</dt>
1205-
<dd>
1206-
<div class='idl-code'>
1207-
<pre class='idl'>
1193+
## Interface {{TransitionEvent}} ## {#interface-transitionevent}
1194+
1195+
The {{TransitionEvent}} interface provides specific contextual information
1196+
associated with transitions.
1197+
1198+
### IDL Definition ### {#interface-transitionevent-idl}
1199+
1200+
<pre class="idl">
12081201
[Constructor(DOMString type, optional TransitionEventInit transitionEventInitDict)]
12091202
interface TransitionEvent : Event {
1210-
readonly attribute DOMString propertyName;
1211-
readonly attribute float elapsedTime;
1212-
readonly attribute DOMString pseudoElement;
1203+
readonly attribute DOMString propertyName;
1204+
readonly attribute float elapsedTime;
1205+
readonly attribute DOMString pseudoElement;
12131206
};
12141207

12151208
dictionary TransitionEventInit : EventInit {
12161209
DOMString propertyName = "";
12171210
float elapsedTime = 0.0;
12181211
DOMString pseudoElement = "";
12191212
};
1220-
</pre>
1221-
</div>
1222-
</dd>
1223-
<dt>
1224-
<b>Attributes</b>
1225-
</dt>
1226-
<dd>
1227-
<dl>
1228-
<dt>
1229-
<code class='attribute-name'><dfn attribute for="TransitionEvent" id="Events-TransitionEvent-propertyName">propertyName</dfn></code> of type <code>DOMString</code>, readonly
1230-
</dt>
1231-
<dd>
1232-
The name of the CSS property associated with the transition.
1233-
</dd>
1234-
</dl>
1235-
<dl>
1236-
<dt>
1237-
<code class='attribute-name'><dfn attribute for="TransitionEvent" id="Events-TransitionEvent-elapsedTime">elapsedTime</dfn></code> of type <code>float</code>, readonly
1238-
</dt>
1239-
<dd>
1240-
The amount of time the transition has been running, in
1241-
seconds, when this event fired not including any time spent
1242-
in the delay phase.
1243-
The precise calculation for of this member is defined along
1244-
with each event type.
1245-
</dd>
1246-
</dl>
1247-
<dl>
1248-
<dt>
1249-
<code class='attribute-name'><dfn attribute for="TransitionEvent" id="Events-TransitionEvent-pseudoElement">pseudoElement</dfn></code> of type <code>DOMString</code>, readonly
1250-
</dt>
1251-
<dd>
1252-
The name (beginning with two colons) of the CSS
1253-
pseudo-element on which the transition occurred (in
1254-
which case the target of the event is that
1255-
pseudo-element's corresponding element), or the empty
1256-
string if the transition occurred on an element (which
1257-
means the target of the event is that element).
1258-
</dd>
1259-
</dl>
1260-
</dd>
1261-
</dl>
1262-
<p>
1263-
<code id="TransitionEvent-constructor">TransitionEvent(type, transitionEventInitDict)</code>
1264-
is an <a>event constructor</a>.
1265-
</p>
1266-
</dd>
1267-
</dl>
1213+
</pre>
1214+
1215+
### Attributes ### {#interface-transitionevent-attributes}
1216+
1217+
: <code class='attribute-name'><dfn attribute for="TransitionEvent" id="Events-TransitionEvent-propertyName">propertyName</dfn></code> of type <code>DOMString</code>, readonly
1218+
:: The name of the CSS property associated with the transition.
1219+
: <code class='attribute-name'><dfn attribute for="TransitionEvent" id="Events-TransitionEvent-elapsedTime">elapsedTime</dfn></code> of type <code>float</code>, readonly
1220+
:: The amount of time the transition has been running, in seconds, when this
1221+
event fired not including any time spent in the delay phase. The precise
1222+
calculation for of this member is defined along with each event type.
1223+
: <code class='attribute-name'><dfn attribute for="TransitionEvent" id="Events-TransitionEvent-pseudoElement">pseudoElement</dfn></code> of type <code>DOMString</code>, readonly
1224+
:: The name (beginning with two colons) of the CSS
1225+
pseudo-element on which the transition occurred (in
1226+
which case the target of the event is that
1227+
pseudo-element's corresponding element), or the empty
1228+
string if the transition occurred on an element (which
1229+
means the target of the event is that element).
1230+
1231+
1232+
<code id="TransitionEvent-constructor"><dfn constructor
1233+
for="TransitionEvent">TransitionEvent(type, transitionEventInitDict)</dfn></code>
1234+
is an <a>event constructor</a>.
1235+
12681236

12691237
Types of <code>TransitionEvent</code> {#event-transitionevent}
12701238
--------------------------------------------------------------

0 commit comments

Comments
 (0)