WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
106245
A negative value for transition-duration should be treated as 0s.
https://bugs.webkit.org/show_bug.cgi?id=106245
Summary
A negative value for transition-duration should be treated as 0s.
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug