- From: Lea Verou via GitHub <sysbot+gh@w3.org>
- Date: Fri, 11 Dec 2020 20:24:17 +0000
- To: public-css-archive@w3.org
> In SCSS, re-inserting is free because it is just string concatenation; we would need a way to enable re-creating a color from components. We can already do that, e.g. `hsl(calc(var(--hue) + 10) 50% 50%)`. In fact, [we measured which functions custom properties are most frequently used in](https://docs.google.com/spreadsheets/d/1sMWXWjMujqfAREYxNbG_t1fOJKYCA6ASLwtz4pBQVTw/edit#gid=2076074923), and `rgba()` was the 3rd most popular, containing `var()` in 4% of pages. `hsla()` was 5th, also used in 4% of pages (which is very significant because in general [`hsla()` was used far less than `rgba()`](https://docs.google.com/spreadsheets/d/1sMWXWjMujqfAREYxNbG_t1fOJKYCA6ASLwtz4pBQVTw/edit#gid=366025718). -- GitHub Notification of comment by LeaVerou Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5782#issuecomment-743408829 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 11 December 2020 20:24:18 UTC