- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Wed, 09 Oct 2024 17:19:04 +0000
- To: public-css-archive@w3.org
I'm not convinced we should treat it like a percentage. For example, with a min/max-content of 100px, `fit-content` is basically `clamp(100px, stretch, 100px)`, and in Blink `max-height: fit-content` behaves as `100px` but `max-height: clamp(100px, 100%, 100px)` behaves as `none`. And doing this like Blink seems more annoying to implement in Servo. So I think we should either: - Keep the spec as-is, or - Treat both `fit-content` and `stretch` as containing a cyclic percentage. More specifically, treat `fit-content` as `fit-content(100%)` and `stretch` as `100%`, so: - For preferred and max properties they both behave as the initial value ([with some special behavior for replaced elements](https://drafts.csswg.org/css-sizing-3/#cyclic-percentage-contribution)) - For min properties see #10969 -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11006#issuecomment-2402881935 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 9 October 2024 17:19:05 UTC