News for hackers. Stuff that matters.
Re:Aspect-ratio is great by jrochkind1 on Thursday February 10, 2022 @09:03AM (#30286090)
I don't entirely understand this, but I think horizontal and vertical are often treated differently in CSS, yes? Like an item without width or height set will in some cases have width constrained by it's parent element, but height will not be (and can even cause parent element to grow). And I feel like it would end up weird and not what you wanted if it wasn't that way.

I may not have this exactly right, but i have an intuition that width and height are treated differently by CSS, and the aspect-ratio example is a consequence of some other fundamental rule/principle, not something unique to aspect-ratio.

Maybe someone else can explain this more specifically.

Re:Aspect-ratio is great by darepublic on Thursday February 10, 2022 @09:52AM (#30286855)
Because the convention is to scroll vertically and not horizontally, width is constrained but height is limitless in such a setup. Hence the differing treatment of width and height