W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2020

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Sat, 22 Aug 2020 01:02:07 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-678571095-1598058126-sysbot+gh@w3.org>
*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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:13 UTC