<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>106245</bug_id>
          
          <creation_ts>2013-01-07 13:13:16 -0800</creation_ts>
          <short_desc>A negative value for transition-duration should be treated as 0s.</short_desc>
          <delta_ts>2013-01-07 13:30:57 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>WebExposed</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>93136</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexis Menard (darktears)">menard</reporter>
          <assigned_to name="Alexis Menard (darktears)">menard</assigned_to>
          <cc>dino</cc>
    
    <cc>peter</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tabatkins</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>801588</commentid>
    <comment_count>0</comment_count>
    <who name="Alexis Menard (darktears)">menard</who>
    <bug_when>2013-01-07 13:13:16 -0800</bug_when>
    <thetext>http://www.w3.org/TR/css3-transitions/#transition-duration-property specify that a negative value for transition-duration should be treated as 0s. It&apos;s not the case in WebKit today. I wonder if the spec is accurate, I remember it was discussed not so long ago in the CSS WG. My quick test in js (not actually looking the rendering) shows that Opera returns negative values when querying the transition-duration on the computed style and Firefox seems to just drop the negative sign, so -10s would be a 10s.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>801601</commentid>
    <comment_count>1</comment_count>
    <who name="Alexis Menard (darktears)">menard</who>
    <bug_when>2013-01-07 13:30:57 -0800</bug_when>
    <thetext>I really should read the editor&apos;s draft

http://dev.w3.org/csswg/css3-transitions/#transition-duration-property has been updated to &quot;A negative value for transition-duration renders the declaration invalid.&quot;

so WebKit behaves correctly.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>