4 ms·
That was a very good explanation, thank you. > Width/height: auto require a layout to know the size, so I don't know if we'll ever get that either Surely the
by deergomoo 5y ago
That was a very good explanation, thank you.
> Width/height: auto require a layout to know the size, so I don't know if we'll ever get that either
Surely the browser ultimately knows what the size is going to be?
- chearon 5y agoIt does but only after a layout. Interpolating from `height: 0;` to `height: 10px` is easy, but interpolating to `height: auto` takes an additional layout. I always assumed that you can't do this either for performance reasons or because it would be really hard to implement.