-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS calc-size() function #955
Comments
@hober, @LeaVerou, @plinss, and I discussed this and we have some brief feedback, some of which is really questions. We have several concerns with the design of this function:
|
|
Yeah, this is really the crux of the problem that we're also grappling with. We note that CSS met recently and resolved on a separate opt-in mechanism. The remaining question we have is whether the |
My current thinking is that I'd like to do the following:
I think there are two reasons to want to keep
|
(Writing this comment on my own, but from what I recall about our consensus last time this was brought up)
Both of these arguments make the point that intermediate values should be representable in CSS. However, no-one proposed they should not be! Our concern was about introducing a new function to do this whose only purpose seems to be implementation convenience. There does not seem to be any author-facing reason that justifies introducing a distinct We think that reusing From our perspective, it seems that the only argument against reusing |
First, I dispute that the signaling value of This also comes with a usability benefit, in that because there are behavior differences in layout algorithms based on what sizing keywords you're using, it's of some value to authors to ensure that it's clear and obvious which keyword it is being adjusted. Having it pulled out as the first argument of Relatedly, it's just plain valuable to know that the value is an intrinsic size, of any sort; having that behavior switch hidden in an arbitrarily-complex Second, I explained why a separate function, and not just "keywords in calc()", was useful back in the CSSWG thread that introduced this, in direct response to your comments in that thread, @LeaVerou. If I ignore the ones related to interpolation (largely moot now), and put the signaling value to the side as well, the big remaining reason from that thread is that percentages can have intrinsic behavior, but they already have well-defined and interoperable behavior in calc() which will not smoothly interpolate. That is, if |
@tabatkins can you join us for a call to talk about this in more detail? Possibly the week of the 29th? |
Sure? I'm not sure what else I can communicate that hasn't already been, but that's fine. I'm not available Monday all day, or Tuesday afternoon. The rest of the week is fine (PT working hours) |
Yes, @dbaron is always welcome. We're at a F2F this week and will be off next week, and we're planning on rescheduling our regular breakouts, so we'll get back to you to schedule. |
The week of July 29th I can generally do 9:00-17:30 in |
こんにちは TAG-さん!
I'm requesting a TAG review of the CSS
calc-size()
function.The CSS calc-size() function is a CSS function similar to calc(), but that also supports operations on exactly one of the values auto, min-content, max-content, fit-content, stretch, or contain. This allows transitions and animations to and from these values (or mathematical functions of these values), as long as the calc-size() function is used on at least one of the endpoints of the transition or animation to opt in.
Further details:
The text was updated successfully, but these errors were encountered: