Summary: | Support transitions to and from 'auto' values of left, top, width, height, etc. | ||
---|---|---|---|
Product: | WebKit | Reporter: | gossi <mail> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | davidbarr, david.b.calhoun, shanestephens |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 |
Description
gossi
2011-04-08 06:25:51 PDT
The way this works now seems like a bug. Current behavior: A transition from a specific height to height:auto will result in the element animating to height:0 and only then jumping down immediately to height:auto. Expected behavior: A transition from a specific height to height:auto should result in a smooth transition to the value calculated by height:auto. The height:auto calculation shouldn't occur after the transition. Tested with WebKit nightly (r97312) and test suite, http://louisremi.github.com/jquery.transition.js/transition%20bugs/index.html The 5th test, which corresponds to this bug report: "When... ...the initial value of an animated property is 'auto' I expect the property to be animated properly." passed, so this bug is resolved at or before r97312. Marking this as resolved. Although the current behaviour may not seem ideal, the specification (http://dev.w3.org/csswg/css3-transitions/) doesn't deal with what happens when animating to/from auto at all. It's better to discuss this issue on www-style@w3.org and wait for a specified behaviour to exist than to debate in this bug. |