Bug 106245 - A negative value for transition-duration should be treated as 0s.
Summary: A negative value for transition-duration should be treated as 0s.
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexis Menard (darktears)
URL:
Keywords: WebExposed
Depends on:
Blocks: 93136
  Show dependency treegraph
 
Reported: 2013-01-07 13:13 PST by Alexis Menard (darktears)
Modified: 2013-01-07 13:30 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Menard (darktears) 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.
Comment 1 Alexis Menard (darktears) 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.