css3-transitions/Overview.src.html

changeset 7316
3c4df823dd45
parent 7315
0f6b1bcdf079
child 7317
f79eee633245
     1.1 --- a/css3-transitions/Overview.src.html	Mon Feb 04 22:01:31 2013 -0700
     1.2 +++ b/css3-transitions/Overview.src.html	Mon Feb 04 22:33:00 2013 -0700
     1.3 @@ -1069,17 +1069,18 @@
     1.4              <dd>
     1.5                <div class='idl-code'>
     1.6                  <pre>
     1.7 -  interface TransitionEvent : Event {
     1.8 -    readonly attribute DOMString          propertyName;
     1.9 -    readonly attribute float              elapsedTime;
    1.10 -    readonly attribute DOMString          pseudoElement;
    1.11 -    void               initTransitionEvent(in DOMString typeArg, 
    1.12 -                                          in boolean canBubbleArg, 
    1.13 -                                          in boolean cancelableArg, 
    1.14 -                                          in DOMString propertyNameArg,
    1.15 -                                          in float elapsedTimeArg,
    1.16 -                                          in DOMString pseudoElementArg);
    1.17 +  <span id="TransitionEvent">[Constructor(DOMString <var title="">type</var>, optional <a href="#TransitionEventInit">TransitionEventInit</a> <var title="">eventInitDict</var>)]
    1.18 +  interface TransitionEvent</span> : Event {
    1.19 +    readonly attribute DOMString          <a href="#Events-TransitionEvent-propertyName">propertyName</a>;
    1.20 +    readonly attribute float              <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a>;
    1.21 +    readonly attribute DOMString          <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a>;
    1.22    };
    1.23 +
    1.24 +  <span id="TransitionEventInit">dictionary AnimationEventInit</span> : <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
    1.25 +    DOMString <a href="#Events-TransitionEvent-propertyName">propertyName</a>;
    1.26 +    float <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a>;
    1.27 +    DOMString <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a>;
    1.28 +  }
    1.29    </pre>
    1.30                </div>
    1.31              </dd>
    1.32 @@ -1117,87 +1118,11 @@
    1.33                  </dd>
    1.34                </dl>
    1.35              </dd>
    1.36 -            <dt>
    1.37 -              <b>Methods</b>
    1.38 -            </dt>
    1.39 -            <dd>
    1.40 -              <dl>
    1.41 -                <dt>
    1.42 -                  <code class='method-name'><a id="Events-TransitionEvent-initTransitionEvent" name='Events-TransitionEvent-initTransitionEvent'>initTransitionEvent</a></code>
    1.43 -                </dt>
    1.44 -                <dd>
    1.45 -                  <div class='method'>
    1.46 -                    The <code>initTransitionEvent</code> method is used to
    1.47 -                    initialize the value of a <code>TransitionEvent</code>
    1.48 -                    created through the <a
    1.49 -                    href='http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-DocumentEvent'><code>DocumentEvent</code></a>
    1.50 -                    interface. This method may only be called before the
    1.51 -                    <code>TransitionEvent</code> has been dispatched via the
    1.52 -                    <code>dispatchEvent</code> method, though it may be called
    1.53 -                    multiple times during that phase if necessary. If called
    1.54 -                    multiple times, the final invocation takes precedence.
    1.55 -                    <p class="issue">Should new events being created still
    1.56 -                    have init*Event methods?</p>
    1.57 -                    <div class='parameters'>
    1.58 -                      <b>Parameters</b>
    1.59 -                      <div class='paramtable'>
    1.60 -                        <dl>
    1.61 -                          <dt>
    1.62 -                            <code class='parameter-name'>typeArg</code> of type <code>DOMString</code>
    1.63 -                          </dt>
    1.64 -                          <dd>
    1.65 -                            Specifies the event type.<br>
    1.66 -                          </dd>
    1.67 -                          <dt>
    1.68 -                            <code class='parameter-name'>canBubbleArg</code> of type <code>boolean</code>
    1.69 -                          </dt>
    1.70 -                          <dd>
    1.71 -                            Specifies whether or not the event can bubble.<br>
    1.72 -                          </dd>
    1.73 -                          <dt>
    1.74 -                            <code class='parameter-name'>cancelableArg</code> of type <code>boolean</code>
    1.75 -                          </dt>
    1.76 -                          <dd>
    1.77 -                            Specifies whether or not the event's default action can be prevented. Since a TransitionEvent
    1.78 -                            is purely for notification, there is no default action.<br>
    1.79 -                          </dd>
    1.80 -                          <dt>
    1.81 -                            <code class='parameter-name'>propertyNameArg</code> of type <code>DOMString</code>
    1.82 -                          </dt>
    1.83 -                          <dd>
    1.84 -                            Specifies the name of the property associated with the <a href='http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event'><code>Event</code></a>.
    1.85 -                            (See the <a href="#Events-TransitionEvent-propertyName">propertyName</a> attribute.)
    1.86 -                          </dd>
    1.87 -                          <dt>
    1.88 -                            <code class='parameter-name'>elapsedTimeArg</code> of type <code>float</code>
    1.89 -                          </dt>
    1.90 -                          <dd>
    1.91 -                            Specifies the amount of time, in seconds, the transition has been running at the time of initialization.
    1.92 -                            (See the <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a> attribute.)
    1.93 -                          </dd>
    1.94 -                          <dt>
    1.95 -                            <code class='parameter-name'>pseudoElementArg</code> of type <code>DOMString</code>
    1.96 -                          </dt>
    1.97 -                          <dd>
    1.98 -                            Specifies the pseudo-element on which the
    1.99 -                            transition occurred.
   1.100 -                            (See the <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a> attribute.)
   1.101 -                            <span class="issue">Does adding this additional argument create any compatibility problems?</span>
   1.102 -                          </dd>
   1.103 -                        </dl>
   1.104 -                      </div>
   1.105 -                    </div><!-- parameters -->
   1.106 -                    <div>
   1.107 -                      <b>No Return Value</b>
   1.108 -                    </div>
   1.109 -                    <div>
   1.110 -                      <b>No Exceptions</b>
   1.111 -                    </div>
   1.112 -                  </div><!-- method -->
   1.113 -                </dd>
   1.114 -              </dl>
   1.115 -            </dd>
   1.116            </dl>
   1.117 +          <p>
   1.118 +            <code id="TransitionEvent-constructor">TransitionEvent(type, animEventDict)</code>
   1.119 +            is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event constructor</a>.
   1.120 +          </p>
   1.121          </dd>
   1.122        </dl>
   1.123        <p>

mercurial