|
|
|
|
|
by chearon
1273 days ago
|
|
The browser doesn't know what the auto size is any more than you do until it performs a layout (reflow). Layouts are expensive and must be minimized. And what if content is changed in the middle of the transition? Should it recalculate the new auto size? Maybe we will get it some day, but there are good reasons to be cautious. I'd go as far as saying layout properties like `height` and `font-size` shouldn't even be animated. If you pay attention to animations on macOS or iOS, the animations are performed on post-layout pixels: scaling and translating. That gets you very smooth FPS and isn't thrashing the CPU. |
|
Sciter supports animate to min/max-content. This
will animate the following: so technically that's possible. And browsers are in principle capable of doing that too if they support animation in <summary>/<details>