- From: Francisco Ryan Tolmasky I via GitHub <sysbot+gh@w3.org>
- Date: Fri, 29 Dec 2023 20:51:14 +0000
- To: public-css-archive@w3.org
> > So what I really want is just new units like `%w` and `%h`, to differentiate between the width and height when referring to percentages. That way I could just do something like `padding: 10%h 10%w`. Should I open a new issue to discuss that specifically? > > I really think those are just container query length units use cases. Exposing them without the containment could lead to circularity. I certainly haven't thought through all the ramifications, but I would be surprised if this addition is any *more* circular than the existing percentages we already have access to. One way to look at it is that all geometry-based `%` units today are *already* either implicitly `%w` or `%h`. In the `padding` case, `%` is identical to my proposed `%w`. In the `width` case as well. In the `height` case, `%` is identical to my proposed `%h`. It doesn't seem obvious to me that allowing you to be explicit about it would change that, especially if it followed the same rules as `%` today to avoid any potential circularity. -- GitHub Notification of comment by tolmasky Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2864#issuecomment-1872331753 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 29 December 2023 20:51:16 UTC