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

@scottkellum 
> I’m curious if there are any ways to use map() everywhere and either pass in the unit type or infer it.

Can't infer the type; many values are ambiguous. The problem with passing in the type is that there are often type-specific controls you want (like in color-mix()), so we'll want specific functions *anyway*. The exact type also has some implications about the general grammar, like calc-mix() has to fix the order of the value and the %, while color-mix() can allow them in any order. 

(Note as well that in your example, the line-height values are *not* lengths, they're just numbers. Exact CSS type can sometimes be a bit confusing in properties.)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6245#issuecomment-2672478439 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 19:29:06 UTC