Hacker News new | ask | show | jobs
by deergomoo 1837 days 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?

1 comments

It 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.