Re: [csswg-drafts] Interpolate values between breakpoints (#6245)

@tabatkins [This proposal](https://github.com/w3c/csswg-drafts/issues/6245#issuecomment-2661548288) seems just about perfect. I’m curious if there are any ways to use `map()` everywhere and either pass in the unit type or infer it.

This still doesn’t feel quite right, but maybe something like:

```
h1 {
  --scale: container(inline-size) by ease-in-out;
  font-size: map(var(--scale), 20rem: 1rem, 60rem: 5rem, <length>);
  color: map(var(--scale), 20rem: lime, 40rem: aqua, 60rem: hotpink, <color>);
  line-height: map(var(--scale), 20rem: 1.2, 60rem: 1, <length>);
}
```

-- 
GitHub Notification of comment by scottkellum
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6245#issuecomment-2672184663 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 20 February 2025 17:26:31 UTC