- From: Naman Goel via GitHub <noreply@w3.org>
- Date: Thu, 26 Jun 2025 11:48:29 +0000
- To: public-css-archive@w3.org
Sorry for this late comment, but I don’t think these two functions add much value, and as a developer I would much prefer having support for diving two lengths in `calc()` (which only Safari supports today) I would argue that new special-case functions should at the very least be delayed until after scalar division is available cross-browser. Additionally, the proposal for custom functions in CSS subsumes this proposal IMO. This is a small convenience around scalar division in `calc()` and I think standards should start by focusing on flexible primitives at first. —— However, I understand that I am chiming in very late on this topic and things have progressed quite a bit. If something like this has to ship, perhaps a function with a name like `range-map()` might make more sense? ```css font-size: range-map( 100vw, from 375px 1920px, to 24px 32px ); ``` If the goal is to improve readability, I think this achieves that goal better. -- GitHub Notification of comment by nmn Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7268#issuecomment-3008207036 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 26 June 2025 11:48:30 UTC