css3-transitions/Overview.src.html

Sun, 10 Feb 2013 00:30:07 -0800

author
L. David Baron <dbaron@dbaron.org>
date
Sun, 10 Feb 2013 00:30:07 -0800
changeset 7422
5d8fa791b29c
parent 7411
1e06b058dde6
child 7423
802063087266
permissions
-rw-r--r--

[css3-transitions] Fixed missed substitution when copying event IDL from css3-animations.

     1 <!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN'
     2   'http://www.w3.org/TR/html4/strict.dtd'>
     4 <html lang="en">
     5 <head>
     6   <title>CSS Transitions</title>
     7   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     8   <link rel="stylesheet" type="text/css" href="../default.css">
     9   <style type="text/css">
    10     table.animatable-properties {
    11       border-collapse: collapse;
    12     }
    13     table.animatable-properties td {
    14       padding: 0.2em 1em;
    15       border: 1px solid black;
    16     }
    17     div.prod { margin: 1em 2em; }
    18   </style>
    19   <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-ED.css">
    20 </head>
    22 <body>
    24 <div class="head">
    25 <!--logo-->
    27 <h1>CSS Transitions</h1>
    29 <h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2>
    30 <dl>
    31   <dt>This version:
    32     <dd>
    33     <a href="[VERSION]">
    34       http://dev.w3.org/csswg/css3-transitions/</a>
    35       <!--http://www.w3.org/TR/[YEAR]/WD-[SHORTNAME]-[CDATE]/-->
    36   <dt>Latest version:
    37     <dd><a href="http://www.w3.org/TR/css3-transitions/">
    38       [LATEST]</a>
    39   <dt>Editor's draft:
    40     <dd><a href="http://dev.w3.org/csswg/[SHORTNAME]/">http://dev.w3.org/csswg/[SHORTNAME]/</a>
    41   <dt>Previous version:
    42     <dd><a href="http://www.w3.org/TR/2012/WD-css3-transitions-20120403/">
    43       http://www.w3.org/TR/2012/WD-css3-transitions-20120403/</a>
    44   <dt id="editors-list">Editors:
    45     <dd><a href="mailto:dino@apple.com">Dean Jackson</a> (<a
    46       href="http://www.apple.com/">Apple Inc</a>)
    47     <dd><a href="mailto:hyatt@apple.com">David Hyatt</a> (<a
    48       href="http://www.apple.com/">Apple Inc</a>)
    49     <dd><a href="mailto:cmarrin@apple.com">Chris Marrin</a> (<a
    50       href="http://www.apple.com/">Apple Inc</a>)
    51     <dd class=vcard><a class=fn href="http://dbaron.org/">L. David Baron</a> (<a
    52       class=org href="http://www.mozilla.org/">Mozilla</a>)
    54   <dt>Issues list:
    55     <dd><a href="https://www.w3.org/Bugs/Public/buglist.cgi?query_format=advanced&amp;product=CSS&amp;component=Transitions&amp;resolution=---&amp;cmdtype=doit">in Bugzilla</a>
    57   <dt>Discussion:</dt>
    58     <dd><a href="http://lists.w3.org/Archives/Public/www-style/">www-style@w3.org</a> with subject line &ldquo;<kbd>[[SHORTNAME]] <var>&hellip; message topic &hellip;</var></kbd>&rdquo;
    60   <dt>Test suite:
    61     <dd>none yet
    62 </dl>
    64 <!--copyright-->
    66 <hr title="Separator for header">
    67 </div>
    69 <h2 class="no-num no-toc" id="abstract">Abstract</h2>
    71 <p>CSS Transitions allows property changes in CSS values to occur smoothly
    72   over a specified duration.
    74 <h2 class="no-num no-toc" id="status">Status of this document</h2>
    75 <!--status-->
    77 <p>
    78   The <a href="ChangeLog">list of changes made to this specification</a> is
    79   available.
    80 </p>
    82 <h2 class="no-num no-toc" id="contents">Table of Contents</h2>
    83 <!--toc-->
    86 <h2 id="introduction">Introduction</h2>
    88       <p><em>This section is not normative.</em>
    89       <p>
    90         This document introduces new CSS features to enable <em>implicit transitions</em>, which describe how CSS properties can be made to change smoothly from one value to another over a given duration.
    91       </p>
    93 <h2 id="transitions"><a id="transitions-">Transitions</a></h2>
    94       <p>
    95         Normally when the value of a CSS property changes, the rendered result is instantly updated, with the affected elements immediately changing from the old property value to the new property value. This section describes a way to specify transitions using new CSS properties. These properties are used to animate smoothly from the old state to the new state over time.
    96       </p>
    97       <p>
    98         For example, suppose that transitions of one second have been defined on the 'left' and
    99         'background-color' properties. The following diagram illustrates the effect of updating those properties on an element, in this case moving it to the right and changing the background from red to blue. This assumes other transition parameters still have their default values.
   100       </p>
   101       <div class="figure">
   102         <img src="transition1.png" alt="">
   103       </div>
   104       <p class="caption">
   105         Transitions of 'left' and 'background-color'
   106       </p>
   107       <p>
   108         Transitions are a presentational effect. The computed value of a property transitions over time from the old value to the new value. Therefore if a script queries the computed style of a property as it is transitioning, it will see an intermediate value that represents the current animated value of the property.
   109       </p>
   110       <p>
   111         Only animatable CSS properties can be transitioned. See the table at the end of this document for a list 
   112         of properties that are animatable.
   113       </p>
   114       <p>
   115         The transition for a property is defined using a number of new properties. For example:
   116       </p>
   117       <div class="example">
   118         <p style="display:none">
   119           Example(s):
   120         </p>
   121         <pre>
   122   div {
   123     transition-property: opacity;
   124     transition-duration: 2s;
   125   }
   126   </pre>The above example defines a transition on the 'opacity' property that, when a new value is assigned to it, will cause a smooth change between the old value and the new value over a period of two seconds.
   127       </div>
   128       <p>
   129         Each of the transition properties accepts a comma-separated list, allowing multiple transitions to be defined, each acting on a different property. In this case, the individual transitions take their parameters from the same index in all the lists. For example:
   130       </p>
   131       <div class="example">
   132         <p style="display:none">
   133           Example(s):
   134         </p>
   135         <pre>
   136   div {
   137     transition-property: opacity, left;
   138     transition-duration: 2s, 4s;
   139   }
   141   </pre>This will cause the 'opacity' property to transition over a period of two seconds and the left property to transition over a period of four seconds.
   142       </div>
   144       <p id="list-matching">
   145         In the case where the lists of values in transition properties
   146         do not have the same length, the length of the
   147         'transition-property' list determines the number of items in
   148         each list examined when starting transitions.  The lists are
   149         matched up from the first value: excess values at the end are
   150         not used.  If one of the other properties doesn't have enough
   151         comma-separated values to match the number of values of
   152         'transition-property', the UA must calculate its used value by
   153         repeating the list of values until there are enough.  This
   154         truncation or repetition does not affect the computed value.
   155         <span class="note">
   156           Note: This is analogous to the behavior of the 'background-*'
   157           properties, with 'background-image' analogous to
   158           'transition-property'.
   159         </span>
   160       </p>
   162       <div class="example">
   163         <p style="display:none">
   164           Example(s):
   165         </p>
   166       <pre>
   167       div {
   168         transition-property: opacity, left, top, width;
   169         transition-duration: 2s, 1s;
   170       }
   171       </pre>The above example defines a transition on the 'opacity' property of 2 seconds duration, a
   172       transition on the 'left' property of 1
   173       second duration, a transition on the 'top' property of 2 seconds duration and a
   174       transition on the 'width' property of 1
   175       second duration.
   177       </div>
   179       <p>
   180         While authors can use transitions to create dynamically changing content,
   181         dynamically changing content can lead to seizures in some users.
   182         For information on how to avoid content that can lead to seizures, see
   183         <a href="http://www.w3.org/TR/WCAG20/#seizure">Guideline 2.3:
   184         Seizures:
   185         Do not design content in a way that is known to cause seizures</a>
   186         ([[WCAG20]]).
   187       </p>
   189       <!-- ======================================================================================================= -->
   190       <h3 id="transition-property-property"><a id="the-transition-property-property-">
   191         The 'transition-property' Property
   192       </a></h3>
   193       <p>
   194         The 'transition-property' property specifies the name of the CSS property to which the transition is applied.
   195       </p>
   196       <table class="propdef">
   197         <tbody>
   198           <tr>
   199             <td>
   200               <em>Name:</em>
   201             </td>
   202             <td>
   203               <dfn id="transition-property">transition-property</dfn>
   204             </td>
   205           </tr>
   206           <tr>
   207             <td>
   208               <em>Value:</em>
   209             </td>
   210             <td>
   211               none | <span>&lt;single-transition-property&gt;</span> [ ',' <span>&lt;single-transition-property&gt;</span> ]*
   212             </td>
   213           </tr>
   214           <tr>
   215             <td>
   216               <em>Initial:</em>
   217             </td>
   218             <td>
   219               all
   220             </td>
   221           </tr>
   222           <tr>
   223             <td>
   224               <em>Applies to:</em>
   225             </td>
   226             <td>
   227               all elements, :before and :after pseudo elements
   228             </td>
   229           </tr>
   230           <tr>
   231             <td>
   232               <em>Inherited:</em>
   233             </td>
   234             <td>
   235               no
   236             </td>
   237           </tr>
   238           <tr>
   239             <td>
   240               <em>Animatable:</em>
   241             </td>
   242             <td>
   243               no
   244             </td>
   245           </tr>
   246           <tr>
   247             <td>
   248               <em>Percentages:</em>
   249             </td>
   250             <td>
   251               N/A
   252             </td>
   253           </tr>
   254           <tr>
   255             <td>
   256               <em>Media:</em>
   257             </td>
   258             <td>
   259               visual
   260             </td>
   261           </tr>
   262           <tr>
   263             <td>
   264               <em>Computed value:</em>
   265             </td>
   266             <td>
   267               Same as specified value.
   268             </td>
   269           </tr>
   270           <tr>
   271             <td>
   272               <em>Canonical order:</em>
   273             </td>
   274             <td>
   275               <abbr title="follows order of property value definition">per grammar</abbr>
   276             </td>
   277           </tr>
   278         </tbody>
   279       </table>
   281       <div class="prod">
   282         <dfn id="single-transition-property">&lt;single-transition-property&gt;</dfn> = all | &lt;IDENT&gt;
   283       </div>
   285       <p>
   286         A value of ''none'' means that no property will transition.
   287         Otherwise, a list of properties to be transitioned, or the
   288         keyword ''all'' which indicates that all properties are to be
   289         transitioned, is given.
   290       </p>
   292       <p>
   293         If one of the identifiers listed is not a recognized property
   294         name or is not an animatable property, the implementation must
   295         still start transitions on the animatable properties in the
   296         list using the duration, delay, and timing function at their
   297         respective indices in the lists for 'transition-duration',
   298         'transition-delay', and 'transition-timing-function'.  In other
   299         words, unrecognized or non-animatable properties must be kept in
   300         the list to preserve the matching of indices.
   301       </p>
   303       <p>
   304         The keywords ''none'', ''inherit'', and ''initial'' are not
   305         permitted as items within a list of more that one identifier;
   306         any list that uses them is syntactically invalid.
   307         In other words, the &lt;IDENT&gt; production in
   308         <span>&lt;single-transition-property&gt;</span> matches any
   309         identifier other than these three keywords.
   310       </p>
   312       <p>
   313         For the keyword ''all'', or if one of the identifiers listed is a
   314         shorthand property, implementations must start transitions for
   315         any of its longhand sub-properties that are animatable (or, for
   316         ''all'', all animatable properties), using the duration, delay,
   317         and timing function at the index corresponding to the shorthand.
   318       </p>
   319       <p>
   320         If a property is specified multiple times in the value of
   321         'transition-property' (either on its own, via a shorthand that
   322         contains it, or via the ''all'' value), then the transition that
   323         starts uses the duration, delay, and timing function at the
   324         index corresponding to the <em>last</em> item in the value of
   325         'transition-property' that calls for animating that property.
   326       </p>
   327       <p class="note">
   328         Note:  The ''all'' value and 'all' shorthand
   329         property work in similar ways, so the
   330         ''all'' value is just like a shorthand that
   331         covers all properties.
   332       </p>
   334       <!-- ======================================================================================================= -->
   335       <h3 id="transition-duration-property"><a id="the-transition-duration-property-">
   336         The 'transition-duration' Property
   337       </a></h3>
   338       <p>
   339         The 'transition-duration' property defines the length of time that a transition takes.
   340       </p>
   341       <table class="propdef">
   342         <tbody>
   343           <tr>
   344             <td>
   345               <em>Name:</em>
   346             </td>
   347             <td>
   348               <dfn id="transition-duration">transition-duration</dfn>
   349             </td>
   350           </tr>
   351           <tr>
   352             <td>
   353               <em>Value:</em>
   354             </td>
   355             <td>
   356               <span>&lt;time&gt;</span> [, <span>&lt;time&gt;</span>]*
   357             </td>
   358           </tr>
   359           <tr>
   360             <td>
   361               <em>Initial:</em>
   362             </td>
   363             <td>
   364               0s
   365             </td>
   366           </tr>
   367           <tr>
   368             <td>
   369               <em>Applies to:</em>
   370             </td>
   371             <td>
   372               all elements, :before and :after pseudo elements
   373             </td>
   374           </tr>
   375           <tr>
   376             <td>
   377               <em>Inherited:</em>
   378             </td>
   379             <td>
   380               no
   381             </td>
   382           </tr>
   383           <tr>
   384             <td>
   385               <em>Animatable:</em>
   386             </td>
   387             <td>
   388               no
   389             </td>
   390           </tr>
   391           <tr>
   392             <td>
   393               <em>Percentages:</em>
   394             </td>
   395             <td>
   396               N/A
   397             </td>
   398           </tr>
   399           <tr>
   400             <td>
   401               <em>Media:</em>
   402             </td>
   403             <td>
   404               interactive
   405             </td>
   406           </tr>
   407           <tr>
   408             <td>
   409               <em>Computed value:</em>
   410             </td>
   411             <td>
   412               Same as specified value.
   413             </td>
   414           </tr>
   415           <tr>
   416             <td>
   417               <em>Canonical order:</em>
   418             </td>
   419             <td>
   420               <abbr title="follows order of property value definition">per grammar</abbr>
   421             </td>
   422           </tr>
   423         </tbody>
   424       </table>
   425       <p>
   426         This property specifies how long the transition from the old value to the new value should take. By default the value is ''0s'', meaning that the transition is immediate (i.e. there will be no animation). A negative value for 'transition-duration' renders the declaration invalid.
   427       </p>
   429       <!-- =======================================================================================================   
   430         -->
   432       <h3 id="transition-timing-function-property"><a id="transition-timing-function_tag">
   433         The 'transition-timing-function' Property
   434       </a></h3>
   435       <p>
   436         The 'transition-timing-function' property
   437         describes how the intermediate values used during a transition will be
   438         calculated. It allows for a transition to change speed over its
   439         duration. These effects are commonly called <em>easing</em> functions.
   440         In either case, a mathematical function that provides a smooth curve is
   441         used.
   442       </p>
   443       <p>
   444         Timing functions are either defined as a stepping function or 
   445         a <a
   446         href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Cubic_B.C3.A9zier_curves">cubic
   447         B&eacute;zier curve</a>. 
   448         The timing function takes as its input
   449         the current elapsed percentage of the transition duration
   450         and outputs the percentage of the way the transition is
   451         from its start value to its end value.
   452         How this output is used is defined by
   453         the <a href="#animatable-types">interpolation rules</a>
   454         for the value type.
   455       </p>
   456       <p>
   457         A <a href="http://en.wikipedia.org/wiki/Step_function">stepping</a>
   458         function is defined by a number that divides the domain of operation
   459         into equally sized intervals. Each subsequent interval is a equal step
   460         closer to the goal state. The function also specifies whether the
   461         change in output percentage happens at the start or end of the
   462         interval (in other words, if 0% on the input percentage is the point
   463         of initial change).
   464       </p>
   465       <div class="figure">
   466         <img src="step.png" alt="The step timing function splits
   467           the function domain into a number of disjoint straight line
   468           segments. steps(1, start) is a function whose
   469           output value is 1 for all input values. steps(1, end) is a function whose
   470           output value is 0 for all input values less than 1, and output
   471           is 1 for the input value of 1. steps(3, start) is a function that
   472           divides the input domain into three segments, each 1/3 in length,
   473           and 1/3 above the previous segment, with the first segment starting
   474           at 1/3. steps(3, end) is a function that
   475           divides the input domain into three segments, each 1/3 in length,
   476           and 1/3 above the previous segment, with the first segment starting
   477           at 0.">
   478       </div>
   479       <p class="caption">
   480         Step timing functions
   481       </p>
   482       <p>
   483         A <a
   484         href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Cubic_B.C3.A9zier_curves">cubic
   485         B&eacute;zier curve</a> is defined by four control points, P<sub>0</sub>
   486         through P<sub>3</sub> (see Figure 1). P<sub>0</sub> and P<sub>3</sub>
   487         are always set to (0,0) and (1,1). The 'transition-timing-function' property is used
   488         to specify the values for points P<sub>1</sub> and P<sub>2</sub>. These
   489         can be set to preset values using the keywords listed below, or can be
   490         set to specific values using the ''cubic-bezier'' function.
   491         In the ''cubic-bezier'' function, P<sub>1</sub> and
   492         P<sub>2</sub> are each specified by both an X and Y value.
   493       </p>
   494       <div class="figure">
   495         <img src="TimingFunction.png" alt="The B&eacute;zier timing function is a
   496           smooth curve from point P0 = (0,0) to point P3 = (1,1). The
   497           length and orientation of the line segment P0-P1 determines
   498           the tangent and the curvature of the curve at P0 and the
   499           line segment P2-P3 does the same at P3.">
   500       </div>
   501       <p class="caption">
   502         B&eacute;zier Timing Function Control Points
   503       </p>
   504       <table class="propdef">
   505         <tbody>
   506           <tr>
   507             <td>
   508               <em>Name:</em>
   509             </td>
   510             <td>
   511               <dfn id="transition-timing-function">transition-timing-function</dfn>
   512             </td>
   513           </tr>
   514           <tr>
   515             <td>
   516               <em>Value:</em>
   517             </td>
   518             <td>
   519               <span>&lt;single-transition-timing-function&gt;</span> [ ',' <span>&lt;single-transition-timing-function&gt;</span> ]*
   520             </td>
   521           </tr>
   522           <tr>
   523             <td>
   524               <em>Initial:</em>
   525             </td>
   526             <td>
   527               ease
   528             </td>
   529           </tr>
   530           <tr>
   531             <td>
   532               <em>Applies to:</em>
   533             </td>
   534             <td>
   535               all elements, :before and :after pseudo elements
   536             </td>
   537           </tr>
   538           <tr>
   539             <td>
   540               <em>Inherited:</em>
   541             </td>
   542             <td>
   543               no
   544             </td>
   545           </tr>
   546           <tr>
   547             <td>
   548               <em>Animatable:</em>
   549             </td>
   550             <td>
   551               no
   552             </td>
   553           </tr>
   554           <tr>
   555             <td>
   556               <em>Percentages:</em>
   557             </td>
   558             <td>
   559               N/A
   560             </td>
   561           </tr>
   562           <tr>
   563             <td>
   564               <em>Media:</em>
   565             </td>
   566             <td>
   567               interactive
   568             </td>
   569           </tr>
   570           <tr>
   571             <td>
   572               <em>Computed value:</em>
   573             </td>
   574             <td>
   575               Same as specified value.
   576             </td>
   577           </tr>
   578           <tr>
   579             <td>
   580               <em>Canonical order:</em>
   581             </td>
   582             <td>
   583               <abbr title="follows order of property value definition">per grammar</abbr>
   584             </td>
   585           </tr>
   586         </tbody>
   587       </table>
   588       <div class="prod">
   589         <dfn id="single-transition-timing-function">&lt;single-transition-timing-function&gt;</dfn> = ease | linear | ease-in | ease-out | ease-in-out | step-start | step-end | steps(&lt;integer&gt;[, [ start | end ] ]?) | cubic-bezier(&lt;number&gt;, &lt;number&gt;, &lt;number&gt;, &lt;number&gt;)
   590       </div>
   591       <p>
   592         The timing functions have the following definitions.
   593       </p>
   594       <dl>
   595         <dt>
   596           ease
   597         </dt>
   598         <dd>
   599           The ease function is equivalent to cubic-bezier(0.25, 0.1, 0.25, 1).
   600         </dd>
   601         <dt>
   602           linear
   603         </dt>
   604         <dd>
   605           The linear function is equivalent to cubic-bezier(0, 0, 1, 1).
   606         </dd>
   607         <dt>
   608           ease-in
   609         </dt>
   610         <dd>
   611           The ease-in function is equivalent to cubic-bezier(0.42, 0, 1, 1).
   612         </dd>
   613         <dt>
   614           ease-out
   615         </dt>
   616         <dd>
   617           The ease-out function is equivalent to cubic-bezier(0, 0, 0.58, 1).
   618         </dd>
   619         <dt>
   620           ease-in-out
   621         </dt>
   622         <dd>
   623           The ease-in-out function is equivalent to cubic-bezier(0.42, 0, 0.58, 1)
   624         </dd>
   625         <dt>
   626           step-start
   627         </dt>
   628         <dd>
   629           The step-start function is equivalent to steps(1, start).
   630         </dd>
   631         <dt>
   632           step-end
   633         </dt>
   634         <dd>
   635           The step-end function is equivalent to steps(1, end).
   636         </dd>
   637         <dt>
   638           steps(&lt;integer&gt;[, [ start | end ] ]?)
   639         </dt>
   640         <dd>
   641           Specifies a stepping function, described above, taking two
   642           parameters. The first parameter specifies the number of intervals
   643           in the function. It must be a positive integer (greater than 0).
   644           The second parameter, which is optional, is
   645           either the value ''start'' or ''end'', and specifies the point
   646           at which the change of values occur within the interval.
   647           If the second parameter is omitted, it is given the value 'end'.
   648         </dd>
   649         <dt>
   650           cubic-bezier(&lt;number&gt;, &lt;number&gt;, &lt;number&gt;, &lt;number&gt;)
   651         </dt>
   652         <dd>
   653           Specifies a <a
   654           href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve">cubic-bezier
   655           curve</a>. The four values specify points P<sub>1</sub> and
   656           P<sub>2</sub> of the curve as (x1, y1, x2, y2). Both x values must be
   657           in the range [0, 1] or the definition is invalid. The y values can
   658           exceed this range.
   659         </dd>
   660       </dl><!-- ======================================================================================================= -->
   661       <h3 id="transition-delay-property"><a id="the-transition-delay-property-">
   662         The 'transition-delay' Property
   663       </a></h3>
   664       <p>
   665         The 'transition-delay' property defines when the transition will start. It allows a transition to begin execution some some period of time from when it is applied. A 'transition-delay' value of ''0s'' means the transition will execute as soon as the property is changed. Otherwise, the value specifies an offset from the moment the property is changed, and the transition will delay execution by that offset.
   666       </p>
   667       <p>
   668         If the value for 'transition-delay' is a negative time offset then the transition will execute the moment the property is changed, but will appear to have begun execution at the specified offset. That is, the transition will appear to begin part-way through its play cycle. In the case where a transition has implied starting values and a negative 'transition-delay', the starting values are taken from the moment the property is changed.
   669       </p>
   670       <table class="propdef">
   671         <tbody>
   672           <tr>
   673             <td>
   674               <em>Name:</em>
   675             </td>
   676             <td>
   677               <dfn id="transition-delay">transition-delay</dfn>
   678             </td>
   679           </tr>
   680           <tr>
   681             <td>
   682               <em>Value:</em>
   683             </td>
   684             <td>
   685               <span>&lt;time&gt;</span> [, <span>&lt;time&gt;</span>]*
   686             </td>
   687           </tr>
   688           <tr>
   689             <td>
   690               <em>Initial:</em>
   691             </td>
   692             <td>
   693               0s
   694             </td>
   695           </tr>
   696           <tr>
   697             <td>
   698               <em>Applies to:</em>
   699             </td>
   700             <td>
   701               all elements, :before and :after pseudo elements
   702             </td>
   703           </tr>
   704           <tr>
   705             <td>
   706               <em>Inherited:</em>
   707             </td>
   708             <td>
   709               no
   710             </td>
   711           </tr>
   712           <tr>
   713             <td>
   714               <em>Animatable:</em>
   715             </td>
   716             <td>
   717               no
   718             </td>
   719           </tr>
   720           <tr>
   721             <td>
   722               <em>Percentages:</em>
   723             </td>
   724             <td>
   725               N/A
   726             </td>
   727           </tr>
   728           <tr>
   729             <td>
   730               <em>Media:</em>
   731             </td>
   732             <td>
   733               interactive
   734             </td>
   735           </tr>
   736           <tr>
   737             <td>
   738               <em>Computed value:</em>
   739             </td>
   740             <td>
   741               Same as specified value.
   742             </td>
   743           </tr>
   744           <tr>
   745             <td>
   746               <em>Canonical order:</em>
   747             </td>
   748             <td>
   749               <abbr title="follows order of property value definition">per grammar</abbr>
   750             </td>
   751           </tr>
   752         </tbody>
   753       </table><!-- ======================================================================================================= -->
   754       <h3 id="transition-shorthand-property"><a id="the-transition-shorthand-property-">
   755         The 'transition' Shorthand Property
   756       </a></h3>
   757       <p>
   758         The 'transition' shorthand property combines the four properties described above into a single property.
   759       </p>
   760       <table class="propdef">
   761         <tbody>
   762           <tr>
   763             <td>
   764               <em>Name:</em>
   765             </td>
   766             <td>
   767               <dfn id="transition">transition</dfn>
   768             </td>
   769           </tr>
   770           <tr>
   771             <td>
   772               <em>Value:</em>
   773             </td>
   774             <td>
   775               <span>&lt;single-transition&gt;</span> [ ',' <span>&lt;single-transition&gt;</span> ]*
   776             </td>
   777           </tr>
   778           <tr>
   779             <td>
   780               <em>Initial:</em>
   781             </td>
   782             <td>
   783               see individual properties
   784             </td>
   785           </tr>
   786           <tr>
   787             <td>
   788               <em>Applies to:</em>
   789             </td>
   790             <td>
   791               all elements, :before and :after pseudo elements
   792             </td>
   793           </tr>
   794           <tr>
   795             <td>
   796               <em>Inherited:</em>
   797             </td>
   798             <td>
   799               no
   800             </td>
   801           </tr>
   802           <tr>
   803             <td>
   804               <em>Animatable:</em>
   805             </td>
   806             <td>
   807               no
   808             </td>
   809           </tr>
   810           <tr>
   811             <td>
   812               <em>Percentages:</em>
   813             </td>
   814             <td>
   815               N/A
   816             </td>
   817           </tr>
   818           <tr>
   819             <td>
   820               <em>Media:</em>
   821             </td>
   822             <td>
   823               interactive
   824             </td>
   825           </tr>
   826           <tr>
   827             <td>
   828               <em>Computed value:</em>
   829             </td>
   830             <td>
   831               Same as specified value.
   832             </td>
   833           </tr>
   834           <tr>
   835             <td>
   836               <em>Canonical order:</em>
   837             </td>
   838             <td>
   839               <abbr title="follows order of property value definition">per grammar</abbr>
   840             </td>
   841           </tr>
   842         </tbody>
   843       </table>
   845       <div class="prod">
   846         <dfn id="single-transition">&lt;single-transition&gt;</dfn> = [ none | <span>&lt;single-transition-property&gt;</span> ] || <span>&lt;time&gt;</span> || <span>&lt;single-transition-timing-function&gt;</span> || <span>&lt;time&gt;</span>
   847       </div>
   849       <p>
   850         Note that order is important within the items in this property:
   851         the first value that can be parsed as a time is assigned to the
   852         transition-duration,
   853         and the second value that can be parsed as a time is assigned to
   854         transition-delay.
   855       </p>
   857       <p>
   858         If there is more than one <span>&lt;single-transition&gt;</span> in the shorthand,
   859         and any of the transitions has
   860         ''none'' as the <span>&lt;single-transition-property&gt;</span>,
   861         then the declaration is invalid.
   862       </p>
   864       <h2 id="starting">
   865         Starting of transitions
   866       </h2>
   868       <p>
   869         When the computed value of an animatable property changes,
   870         implementations must decide what transitions to start based on
   871         the values of the 'transition-property', 'transition-duration',
   872         'transition-timing-function', and 'transition-delay' properties
   873         at the time the animatable property would first have its new
   874         computed value.
   875       </p>
   876       <div class="example" id="manual-reversing-example">
   877         <p style="display:none">
   878           Example(s):
   879         </p>
   880         <p>This provides a way for authors to specify different values
   881         of the 'transition-*' properties for the &ldquo;forward&rdquo;
   882         and &ldquo;reverse&rdquo; transitions (but see <a
   883         href="#reversing">below</a> for special reversing behavior when
   884         an <em>incomplete</em> transition is interrupted).  Authors can
   885         specify the value of 'transition-duration',
   886         'transition-timing-function', or 'transition-delay' in the same
   887         rule where they specify the value that triggers the transition,
   888         or can change these properties at the same time as they change
   889         the property that triggers the transition.  Since it's the new
   890         values of these 'transition-*' properties that affect the
   891         transition, these values will be used for the transitions
   892         <em>to</em> the associated transitioning values.  For example:
   893          </p>
   894         <pre>li {
   895   transition: background-color linear 1s;
   896   background: blue;
   897 }
   898 li:hover {
   899   background-color: green;
   900   transition-duration: 2s; /* applies to the transition *to* the :hover state */
   901 }</pre>
   902         <p>
   903           When a list item with these style rules enters the :hover
   904           state, the computed 'transition-duration' at the time that
   905           'background-color' would have its new value (''green'') is ''2s'',
   906           so the transition from 'blue' to 'green' takes 2 seconds.
   907           However, when the list item leaves the :hover state, the
   908           transition from ''green'' to ''blue'' takes 1 second.
   909         </p>
   910       </div>
   912       <p>
   913         When the computed value of a property changes, implementations
   914         must start transitions based on the relevant item (see <a
   915         href="#transition-property">the definition of
   916         'transition-property'</a>) in the computed value of
   917         'transition-property'.
   918         Corresponding to this item there are
   919         computed values of 'transition-duration' and 'transition-delay'
   920         (see <a href="#list-matching">the rules on matching lists</a>).
   921         Define the <dfn>combined duration</dfn> of the transition
   922         as the sum of max('transition-duration', ''0s'') and 'transition-delay'.
   923         When the combined duration is greater than ''0s'',
   924         then a transition starts based on the values of
   925         'transition-duration', 'transition-delay',
   926         and 'transition-timing-function';
   927         in other cases transitions do not occur.
   928       </p>
   930       <p>
   931         Since this specification does not define
   932         when computed values change, and thus what changes to
   933         computed values are considered simultaneous,
   934         authors should be aware that changing any of the transition
   935         properties a small amount of time after making a change that
   936         might transition can result in behavior that varies between
   937         implementations, since the changes might be considered
   938         simultaneous in some implementations but not others.
   939       </p>
   941       <p>
   942         Once the transition of a property has started, it must continue
   943         running based on the original timing function, duration, and
   944         delay, even if the 'transition-timing-function',
   945         'transition-duration', or 'transition-delay' property changes
   946         before the transition is complete.  However, if the
   947         'transition-property' property changes such that the transition
   948         would not have started, the transition must stop (and the
   949         property must immediately change to its final value).
   950       </p>
   952       <p>
   953         Implementations must not start a transition when the computed
   954         value of a property changes as a result of declarative animation
   955         (as opposed to scripted animation).
   956       </p>
   958       <p>
   959         Implementations also must not start a transition when the
   960         computed value changes because it is inherited (directly or
   961         indirectly) from another element that is transitioning the same
   962         property.
   963       </p>
   965       <h2 id="reversing">
   966         Automatically reversing interrupted transitions
   967       </h2>
   968       <p>
   969         A common type of transition effect is when a running transition is
   970         interrupted and the property is reset to its original value. An
   971         example is a hover effect on an element, where the pointer enters and
   972         exits the element before the effect has completed. If the outgoing and
   973         incoming transitions are executed using their specified durations and
   974         timing functions, the resulting effect can be distractingly
   975         asymmetric. Instead, the expected behavior is that the new transition
   976         should be the reverse of what has already executed.
   977       </p>
   979       <p>
   980         If a running transition with duration T, executing so far for duration TE, 
   981         from state A, to state B, is interrupted by
   982         a property change that would start a new transition back to state A, and
   983         all the transition attributes are the same (duration, delay and timing function),
   984         then the new transition must reverse the effect. The new transition must:
   985       </p>
   987       <ol>
   988         <li>
   989           Use the B and A states as its "from" and "to" states respectively. It
   990           does not use the current value as its from state, due to the rules below.
   991         </li>
   992         <li>
   993           Execute with the same duration T, but starting as if the transition had
   994           already begun, without any transition delay, at the moment which would
   995           cause the new transition to finish in TE from the moment of interruption. In other
   996           words, the new transition will execute as if it started T-TE in the past.
   997         </li>
   998         <li>
   999           Use a timing function that is the portion of the curve traversed up
  1000           to the moment of interruption, followed in the opposite direction (towards
  1001           the starting point). This will make the transition appear as if it 
  1002           is playing backwards.
  1003         </li>
  1004         <li>
  1005           Ignore any transition delay.
  1006         </li>
  1007       </ol>
  1009       <p>
  1010         For example, suppose there is a transition with a duration of two
  1011         seconds. If this transition is interrupted after 0.5 seconds and the
  1012         property value assigned to the original value, then the new transition
  1013         effect will be the reverse of the original, as if it had begun
  1014         1.5 seconds in the past.
  1015       </p>
  1017       <p>
  1018         Note that by using the defined from and to states for the reversing
  1019         transition, it is also possible that it may reverse again, if
  1020         interrupted; for example, if the transition reversing to state A was
  1021         again interrupted by a property change to state B.
  1022       </p>
  1024       <p class="issue">Issue:
  1025         This introduces the concept of reversing a timing function,
  1026         which the spec has otherwise resisted doing, and also introduces
  1027         a discontinuity between transitions that have
  1028         almost completed (which get automatically reversed and thus have
  1029         their timing function reversed) and transitions that have fully
  1030         completed (where the reversal doesn't lead to the timing
  1031         function being reversed).  An alternative proposal that avoids
  1032         this is to follow the normal timing function algorithm, except
  1033         multiply the duration (and also shorten any negative delay) by
  1034         the (output) value of the transition timing function of the
  1035         incomplete transition at the time it was interrupted, and, to
  1036         account for multiple reverses in sequence, to divide by the
  1037         shortening applied to the transition being interrupted.  For
  1038         more details see this thread:
  1039         <a href="http://lists.w3.org/Archives/Public/www-style/2009Nov/thread.html#msg302">November 2009 part</a>,
  1040         <a href="http://lists.w3.org/Archives/Public/www-style/2009Dec/thread.html#msg319">December 2009 part</a>,
  1041         <a href="http://lists.w3.org/Archives/Public/www-style/2010Jan/thread.html#msg136">January 2010 part</a>.
  1042       </p>
  1044       <h2 id="transition-events"><a id="transition-events-">
  1045         Transition Events
  1046       </a></h2>
  1047       <p>
  1048         The completion of a CSS Transition generates a corresponding <a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html">DOM Event</a>.
  1049         An event is fired for each property that undergoes a transition.
  1050         This allows a content developer to perform actions that synchronize
  1051         with the completion of a transition.
  1052       </p>
  1053       <p>
  1054         Each event provides the name of the property the transition is
  1055         associated with as well as the duration of the transition.
  1056       </p>
  1057       <dl>
  1058         <dt>
  1059           <b>Interface <dfn id="Events-TransitionEvent">TransitionEvent</dfn></b>
  1060         </dt>
  1061         <dd>
  1062           <p>
  1063             The <code>TransitionEvent</code> interface provides specific contextual information associated with transitions.
  1064           </p>
  1065           <dl>
  1066             <dt>
  1067               <b>IDL Definition</b>
  1068             </dt>
  1069             <dd>
  1070               <div class='idl-code'>
  1071                 <pre>
  1072   <span id="TransitionEvent">[Constructor(DOMString <var title="">type</var>, optional <a href="#TransitionEventInit">TransitionEventInit</a> <var title="">eventInitDict</var>)]
  1073   interface TransitionEvent</span> : Event {
  1074     readonly attribute DOMString          <a href="#Events-TransitionEvent-propertyName">propertyName</a>;
  1075     readonly attribute float              <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a>;
  1076     readonly attribute DOMString          <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a>;
  1077   };
  1079   <span id="TransitionEventInit">dictionary TransitionEventInit</span> : <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
  1080     DOMString <a href="#Events-TransitionEvent-propertyName">propertyName</a>;
  1081     float <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a>;
  1082     DOMString <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a>;
  1084   </pre>
  1085               </div>
  1086             </dd>
  1087             <dt>
  1088               <b>Attributes</b>
  1089             </dt>
  1090             <dd>
  1091               <dl>
  1092                 <dt>
  1093                   <code class='attribute-name'><dfn title="TransitionEvent::propertyName" id="Events-TransitionEvent-propertyName">propertyName</dfn></code> of type <code>DOMString</code>, readonly
  1094                 </dt>
  1095                 <dd>
  1096                   The name of the CSS property associated with the transition.
  1097                 </dd>
  1098               </dl>
  1099               <dl>
  1100                 <dt>
  1101                   <code class='attribute-name'><dfn title="TransitionEvent::elapsedTime" id="Events-TransitionEvent-elapsedTime">elapsedTime</dfn></code> of type <code>float</code>, readonly
  1102                 </dt>
  1103                 <dd>
  1104                   The amount of time the transition has been running, in seconds, when this event fired. Note that this value is not affected by the value of <code class="property">transition-delay</code>.
  1105                 </dd>
  1106               </dl>
  1107               <dl>
  1108                 <dt>
  1109                   <code class='attribute-name'><dfn title="TransitionEvent::pseudoElement" id="Events-TransitionEvent-pseudoElement">pseudoElement</dfn></code> of type <code>DOMString</code>, readonly
  1110                 </dt>
  1111                 <dd>
  1112                   The name (beginning with two colons) of the CSS
  1113                   pseudo-element on which the transition occured (in
  1114                   which case the target of the event is that
  1115                   pseudo-element's corresponding element), or the empty
  1116                   string if the transition occurred on an element (which
  1117                   means the target of the event is that element).
  1118                 </dd>
  1119               </dl>
  1120             </dd>
  1121           </dl>
  1122           <p>
  1123             <code id="TransitionEvent-constructor">TransitionEvent(type, animEventDict)</code>
  1124             is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event constructor</a>.
  1125           </p>
  1126         </dd>
  1127       </dl>
  1128       <p>
  1129         There is one type of transition event available.
  1130       </p>
  1131       <dl>
  1132         <dt>
  1133           <b><dfn>transitionend</dfn></b>
  1134         </dt>
  1135         <dd>
  1136           The <code>transitionend</code> event occurs at the completion of the transition. In the
  1137           case where a transition is removed before completion, such as if the
  1138           transition-property is removed, then the event will not fire.
  1139           <ul>
  1140             <li>Bubbles: Yes
  1141             </li>
  1142             <li>Cancelable: Yes
  1143             </li>
  1144             <li>Context Info: propertyName, elapsedTime, pseudoElement
  1145             </li>
  1146           </ul>
  1147         </dd>
  1148       </dl>
  1150       <h2 id="animatable-types"><a id="animation-of-property-types-">
  1151         Animation of property types
  1152       </a></h2>
  1154       <p>
  1155         When interpolating between two values,
  1156         <i>V</i><sub>start</sub> and <i>V</i><sub>end</sub>,
  1157         interpolation is done using the output <i>p</i> of the timing function,
  1158         which gives the portion of the value space
  1159         that the interpolation has crossed.
  1160         Thus the result of the interpolation is
  1161         <i>V</i><sub>res</sub> =
  1162           (1 - <i>p</i>) &sdot; <i>V</i><sub>start</sub> +
  1163           <i>p</i> &sdot; <i>V</i><sub>end</sub>.
  1164       </p>
  1166       <p>
  1167         However, if this value (<i>V</i><sub>res</sub>)
  1168         is outside the allowed range of values for the property,
  1169         then it is clamped to that range.
  1170         This can occur if <i>p</i> is outside of the range 0 to 1,
  1171         which can occur if a timing function is specified
  1172         with a <i>y1</i> or <i>y2</i> that is outside the range 0 to 1.
  1173       </p>
  1175       <p>
  1176         The following describes how each property type undergoes transition or
  1177         animation.
  1178       </p>
  1180       <ul>
  1181         <li id="animtype-color">
  1182           <strong>color</strong>: interpolated via red, green, blue and alpha
  1183           components (treating each as a number, see below).
  1184           The interpolation is done between premultiplied colors
  1185           (that is, colors for which the red, green, and blue components
  1186           specified have been multiplied by the alpha).
  1187         </li>
  1188         <li id="animtype-length">
  1189           <strong>length</strong>: interpolated as real numbers.
  1190         </li>
  1191         <li id="animtype-percentage">
  1192           <strong>percentage</strong>: interpolated as real numbers.
  1193         </li>
  1194         <li id="animtype-lpcalc">
  1195           <strong>length, percentage, or calc</strong>: when both values
  1196           are lengths, interpolated as lengths; when both values are
  1197           percentages, interpolated as percentages; otherwise, both
  1198           values are converted into a ''calc()'' function that is the
  1199           sum of a length and a percentage (each possibly zero), and
  1200           these ''calc()'' functions have each half interpolated as real
  1201           numbers.
  1202         </li>
  1203         <li id="animtype-integer">
  1204           <strong>integer</strong>: interpolated via discrete steps (whole
  1205           numbers). The interpolation happens in real number space and is
  1206           converted to an integer by rounding to the nearest integer, with
  1207           values halfway between a pair of integers rounded towards
  1208           positive infinity.
  1209         </li>
  1210         <li id="animtype-font-weight">
  1211           <strong>font weight</strong>: interpolated via discrete steps
  1212           (multiples of 100). The interpolation happens in real number
  1213           space and is converted to an integer by rounding to the
  1214           nearest multiple of 100, with values halfway between multiples
  1215           of 100 rounded towards positive infinity.
  1216         </li>
  1217         <li id="animtype-number">
  1218           <strong>number</strong>: interpolated as real (floating point)
  1219           numbers.
  1220         </li>
  1221         <li id="animtype-rect">
  1222           <strong>rectangle</strong>: interpolated via the x, y,
  1223           width and height components (treating each as a number).
  1224         </li>
  1225         <li id="animtype-visibility">
  1226           <strong>visibility</strong>: if one of the values is
  1227           ''visible'', interpolated as a discrete step where values of the
  1228           timing function between 0 and 1 map to ''visible'' and other
  1229           values of the timing function (which occur only at the
  1230           start/end of the transition or as a result of ''cubic-bezier()''
  1231           functions with Y values outside of [0, 1]) map to the closer
  1232           endpoint; if neither value is ''visible'' then not interpolable.
  1233         </li>
  1234         <li id="animtype-shadow-list">
  1235           <strong>shadow list</strong>: Each shadow in the list is
  1236           interpolated via the
  1237           color (as <a href="#animtype-color">color</a>) component,
  1238           and x, y, blur, and (when appropriate) spread
  1239           (as <a href="#animtype-length">length</a>) components.
  1240           For each shadow, if one input shadow is ''inset'' and the other
  1241           is not, then the result for that shadow matches the inputs;
  1242           otherwise the entire list is not interpolable.
  1243           If the lists of shadows have different lengths,
  1244           then the shorter list is padded at the end
  1245           with shadows whose color is ''transparent'',
  1246           all lengths are ''0'',
  1247           and whose ''inset'' (or not) matches the longer list.
  1248         </li>
  1249         <li id="animtype-gradient">
  1250           <strong>gradient</strong>: interpolated via the
  1251           positions and colors of each stop. They must have the same type
  1252           (radial or linear) and same number of stops in order to be animated.
  1253           <span class="note">Note: [[CSS3-IMAGES]] may extend this
  1254           definition.</span>
  1255         </li>
  1256         <li id="animtype-paintserver">
  1257           <strong>paint server</strong> (SVG): interpolation is only supported
  1258           between: gradient to gradient and color to color. They then
  1259           work as above.
  1260         </li>
  1261         <li id="animtype-simple-list">
  1262           <strong>simple list</strong> of other types:
  1263           If the lists have the same number of items,
  1264           and each pair of values can be interpolated,
  1265           each item in the list is interpolated using
  1266           the rules given for those types.
  1267           Otherwise the values are not interpolable.
  1268         </li>
  1269         <li id="animtype-repeatable-list">
  1270           <strong>repeatable list</strong> of other types:
  1271           The result list has a length that is the least common multiple
  1272           of the lengths of the input lists.
  1273           Each item in the result is the interpolation of the value
  1274           from each input list repeated to the length of the result list.
  1275           If a pair of values cannot be interpolated, then the lists
  1276           are not interpolable.
  1277           <span class="note">
  1278             The repeatable list concept ensures that a list that is
  1279             conceptually repeated to a certain length (as
  1280             'background-origin' is repeated to the length of the
  1281             'background-image' list) or repeated infinitely will
  1282             smoothly transition between any values, and so that the
  1283             computed value will properly represent the result (and
  1284             potentially be inherited correctly).
  1285           </span>
  1286         </li>
  1287       </ul>
  1289       <p>Future specifications may define additional types that can
  1290       be animated.</p>
  1292       <p>See the definition of 'transition-property' for how animation
  1293       of shorthand properties and the ''all'' value is applied to any
  1294       properties (in the shorthand) that can be animated.</p>
  1296       <h2 id="animatable-properties"><a id="animatable-properties-">
  1297         Animatable properties
  1298       </a></h2>
  1300       <!--
  1301       As resolved in
  1302       http://lists.w3.org/Archives/Public/www-style/2011Sep/0497.html
  1303       -->
  1305       <p>The definition of each CSS property defines
  1306       when the values of that property can be interpolated
  1307       by referring to the definitions of property types
  1308       in the <a href="#animatable-types">previous section</a>.
  1309       Values are animatable when
  1310       both the from and the to values of the property have the type described.
  1311       (When a composite type such as "length, percentage, or calc" is listed,
  1312       this means that both values must fit into that composite type.)
  1313       When multiple types are listed in the form "either A or B",
  1314       both values must be of the same type to be interpolable.</p>
  1316       <p>For properties that exist at the time this specification was
  1317       developed, this specification defines whether and how they are
  1318       animated.  However, future CSS specifications may define
  1319       additional properties, additional values for existing properties,
  1320       or additional animation behavior of existing values.  In order to
  1321       describe new animation behaviors and to have the definition of
  1322       animation behavior in a more appropriate location, future CSS
  1323       specifications should include an "Animatable:" line in the summary
  1324       of the property's definition (in addition to the other lines
  1325       described in [[CSS21]], <a
  1326       href="http://www.w3.org/TR/CSS21/about.html#property-defs">section
  1327       1.4.2</a>).  This line should say "no" to indicate that a property
  1328       cannot be animated or should reference an animation behavior
  1329       (which may be one of the behaviors in the <a
  1330       href="#animation-of-property-types-">Animation of property
  1331       types</a> section above, or may be a new behavior) to define how
  1332       the property animates.  Such definitions override those given in
  1333       this specification.</p>
  1335       <h3 id="animatable-css"><a id="properties-from-css-">
  1336         Properties from CSS
  1337       </a></h3>
  1339       <p>
  1340       The following definitions define the animation behavior for
  1341       properties in CSS Level 2 Revision 1 ([[CSS21]]) and in Level 3 of
  1342       the CSS Color Module ([[CSS3COLOR]]).
  1343       </p>
  1345      <table class="animatable-properties">
  1346        <tr>
  1347          <th>Property Name</th>
  1348          <th>Type</th>
  1349        </tr>
  1350        <tr>
  1351          <td>background-color</td><td>as <a href="#animtype-color">color</a></tr>
  1352        <tr>
  1353          <td>background-position</td><td>as <a href="#animtype-repeatable-list">repeatable list</a> of <a href="#animtype-simple-list">simple list</a> of <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
  1354        </tr>
  1355        <tr>
  1356          <td>border-bottom-color</td><td>as <a href="#animtype-color">color</a></td>
  1357        </tr>
  1358        <tr>
  1359          <td>border-bottom-width</td><td>as <a href="#animtype-length">length</a></td>
  1360        </tr>
  1361        <tr>
  1362          <td>border-left-color</td><td>as <a href="#animtype-color">color</a></td>
  1363        </tr>
  1364        <tr>
  1365          <td>border-left-width</td><td>as <a href="#animtype-length">length</a></td>
  1366        </tr>
  1367        <tr>
  1368          <td>border-right-color</td><td>as <a href="#animtype-color">color</a></td>
  1369        </tr>
  1370        <tr>
  1371          <td>border-right-width</td><td>as <a href="#animtype-length">length</a></td>
  1372        </tr>
  1373        <tr>
  1374          <td>border-spacing</td><td>as <a href="#animtype-simple-list">simple list</a> of <a href="#animtype-length">length</a></td>
  1375        </tr>
  1376        <tr>
  1377          <td>border-top-color</td><td>as <a href="#animtype-color">color</a></td>
  1378        </tr>
  1379        <tr>
  1380          <td>border-top-width</td><td>as <a href="#animtype-length">length</a></td>
  1381        </tr>
  1382        <tr>
  1383          <td>bottom</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
  1384        </tr>
  1385        <tr>
  1386          <td>clip</td><td>as <a href="#animtype-rect">rectangle</a></td>
  1387        </tr>
  1388        <tr>
  1389          <td>color</td><td>as <a href="#animtype-color">color</a></td>
  1390        </tr>
  1391        <tr>
  1392          <td>font-size</td><td>as <a href="#animtype-length">length</a></td>
  1393        </tr>
  1394        <tr>
  1395          <td>font-weight</td><td>as <a href="#animtype-font-weight">font weight</a></td>
  1396        </tr>
  1397        <tr>
  1398          <td>height</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
  1399        </tr>
  1400        <tr>
  1401          <td>left</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
  1402        </tr>
  1403        <tr>
  1404          <td>letter-spacing</td><td>as <a href="#animtype-length">length</a></td>
  1405        </tr>
  1406        <tr>
  1407          <td>line-height</td><td>as either <a href="#animtype-number">number</a> or <a href="#animtype-length">length</a></td>
  1408        </tr>
  1409        <tr>
  1410          <td>margin-bottom</td><td>as <a href="#animtype-length">length</a></td>
  1411        </tr>
  1412        <tr>
  1413          <td>margin-left</td><td>as <a href="#animtype-length">length</a></td>
  1414        </tr>
  1415        <tr>
  1416          <td>margin-right</td><td>as <a href="#animtype-length">length</a></td>
  1417        </tr>
  1418        <tr>
  1419          <td>margin-top</td><td>as <a href="#animtype-length">length</a></td>
  1420        </tr>
  1421        <tr>
  1422          <td>max-height</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
  1423        </tr>
  1424        <tr>
  1425          <td>max-width</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
  1426        </tr>
  1427        <tr>
  1428          <td>min-height</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
  1429        </tr>
  1430        <tr>
  1431          <td>min-width</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
  1432        </tr>
  1433        <tr>
  1434          <td>opacity</td><td>as <a href="#animtype-number">number</a></td>
  1435        </tr>
  1436        <tr>
  1437          <td>outline-color</td><td>as <a href="#animtype-color">color</a></td>
  1438        </tr>
  1439        <tr>
  1440          <td>outline-width</td><td>as <a href="#animtype-length">length</a></td>
  1441        </tr>
  1442        <tr>
  1443          <td>padding-bottom</td><td>as <a href="#animtype-length">length</a></td>
  1444        </tr>
  1445        <tr>
  1446          <td>padding-left</td><td>as <a href="#animtype-length">length</a></td>
  1447        </tr>
  1448        <tr>
  1449          <td>padding-right</td><td>as <a href="#animtype-length">length</a></td>
  1450        </tr>
  1451        <tr>
  1452          <td>padding-top</td><td>as <a href="#animtype-length">length</a></td>
  1453        </tr>
  1454        <tr>
  1455          <td>right</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
  1456        </tr>
  1457        <tr>
  1458          <td>text-indent</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
  1459        </tr>
  1460        <tr>
  1461          <td>text-shadow</td><td>as <a href="#animtype-shadow-list">shadow list</a></td>
  1462        </tr>
  1463        <tr>
  1464          <td>top</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
  1465        </tr>
  1466        <tr>
  1467          <td>vertical-align</td><td>as <a href="#animtype-length">length</a></td>
  1468        </tr>
  1469        <tr>
  1470          <td>visibility</td><td>as <a href="#animtype-visibility">visibility</a></td>
  1471        </tr>
  1472        <tr>
  1473          <td>width</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
  1474        </tr>
  1475        <tr>
  1476          <td>word-spacing</td><td>as <a href="#animtype-length">length</a></td>
  1477        </tr>
  1478        <tr>
  1479          <td>z-index</td><td>as <a href="#animtype-integer">integer</a></td>
  1480        </tr>
  1481      </table>
  1483      <h3 id="animatable-svg"><a id="properties-from-svg-">
  1484        Properties from SVG
  1485      </a></h3>
  1487      <p>
  1488        All properties defined as animatable in the SVG specification, provided
  1489        they are one of the property types listed above.
  1490       </p>
  1492      <!-- <table>
  1493        <tr>
  1494          <th>Property Name</th><th>Type</th>
  1495        </tr>
  1496        <tr>
  1497          <td>stop-color</td><td>as <a href="#animtype-color">color</a></td>
  1498        </tr>
  1499        <tr>
  1500          <td>stop-opacity</td><td>as <a href="#animtype-number">number</a></td>
  1501        </tr>
  1502        <tr>
  1503          <td>fill</td><td>as <a href="#animtype-paintserver">paint server</a></td>
  1504        </tr>
  1505        <tr>
  1506          <td>fill-opacity</td><td>as <a href="#animtype-number">number</a></td>
  1507        </tr>
  1508        <tr>
  1509          <td>stroke</td><td>as <a href="#animtype-paintserver">paint server</a></td>
  1510        </tr>
  1511        <tr>
  1512          <td>stroke-dasharray</td><td>as <a href="#animtype-repeatable-list">repeatable list</a> of <a href="#animtype-number">number</a></td>
  1513        </tr>
  1514        <tr>
  1515          <td>stroke-dashoffset</td><td>as <a href="#animtype-number">number</a></td>
  1516        </tr>
  1517        <tr>
  1518          <td>stroke-miterlimit</td><td>as <a href="#animtype-number">number</a></td>
  1519        </tr>
  1520        <tr>
  1521          <td>stroke-opacity</td><td>as <a href="#animtype-number">number</a></td>
  1522        </tr>
  1523        <tr>
  1524          <td>stroke-width</td><td>as <a href="#animtype-number">number</a></td>
  1525        </tr>
  1526        <tr>
  1527          <td>viewport-fill</td><td>as <a href="#animtype-color">color</a></td>
  1528        </tr>
  1529        <tr>
  1530          <td>viewport-fill-opacity</td><td>as <a href="#animtype-color">color</a></td>
  1531        </tr>
  1532       </table> -->
  1534 <h2 id="acknowledgments">Acknowledgments</h2>
  1536 <p>Thanks especially to the feedback from
  1537 Tab Atkins,
  1538 Carine Bournez,
  1539 Aryeh Gregor,
  1540 Vincent Hardy,
  1541 Cameron McCormack,
  1542 Alex Mogilevsky,
  1543 and all the rest of the
  1544 <a href="http://lists.w3.org/Archives/Public/www-style/">www-style</a> community.</p>
  1546 <h2 id="references">References</h2>
  1548 <h3 class="no-num" id="normative-references">Normative references</h3>
  1549 <!--normative-->
  1551 <h3 class="no-num" id="other-references">Other references</h3>
  1552 <!--informative-->
  1556 <h2 class="no-num" id="property-index">Property index</h2>
  1557 <!-- properties -->
  1561 <h2 class="no-num" id="index">Index</h2>
  1562 <!--index-->
  1564 </body>
  1565 </html>
  1566 <!-- Keep this comment at the end of the file
  1567 Local variables:
  1568 mode: sgml
  1569 sgml-default-doctype-name:"html"
  1570 sgml-minimize-attributes:t
  1571 End:
  1572 -->

mercurial