Re: [csswg-drafts] [css-values-4] Way to set height, max-height, min-height relative to width (#5461)

*In general*, setting up dependencies between layout properties is a *very* complex and fraught process; just dealing with 'aspect-ratio' itself requires some very precise and subtle handling. Basically, most of the layout properties end up depending on each other at some point or in some conditions, so detecting dependency cycles (and dealing with them reasonably) becomes a major problem.

Percentages *mostly* resolve against *container size* (or available space), which usually isn't dependent on the size of the element using the percentage; when it is, we again have a lot of very precise and subtle handling to make things work as well as possible in as many cases as possible.

This does mean that some types of layouts indeed aren't going to be possible within CSS, unfortunately.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5461#issuecomment-678571095 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 22 August 2020 01:02:11 UTC