Bug 106245

Summary: A negative value for transition-duration should be treated as 0s.
Product: WebKit Reporter: Alexis Menard (darktears) <menard>
Component: CSSAssignee: Alexis Menard (darktears) <menard>
Status: RESOLVED INVALID    
Severity: Normal CC: dino, peter, simon.fraser, tabatkins
Priority: P2 Keywords: WebExposed
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 93136    

Alexis Menard (darktears)
Reported 2013-01-07 13:13:16 PST
http://www.w3.org/TR/css3-transitions/#transition-duration-property specify that a negative value for transition-duration should be treated as 0s. It'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.
Attachments
Alexis Menard (darktears)
Comment 1 2013-01-07 13:30:57 PST
I really should read the editor's draft http://dev.w3.org/csswg/css3-transitions/#transition-duration-property has been updated to "A negative value for transition-duration renders the declaration invalid." so WebKit behaves correctly.
Note You need to log in before you can comment on or make changes to this bug.