-
Notifications
You must be signed in to change notification settings - Fork 715
[css-grid] fit-content with indefinite percentage #3585
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
Comments
Yes. The invalidity of |
Yes, I would like https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-fit-content to explain what to do with indefinite percentages, just like https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-length-percentage does. If it's supposed to behave like |
If the two possible interpretations you can come up with both yield the same behavior, then does it really require clarification? (This section of the spec is referenced by authors. If it's not necessary for correctness to add a note about obscure details, it's probably better to leave them out.) If it's not clear clear that the argument to |
Well I'm not completely sure if they always yield the same behavior. Can you confirm if it's the case? I still haven't pored over the part about track expansion by align-content and justify-content.
But the problem is that this is not really the case, because indefinite percentages are treated as
and AFAIK So if you want to leave the spec as-is it's not that bad but I don't think it's completely clear. |
Well, yeah. |
According to https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-length-percentage,
But what if the indefinite percentage is inside
fit-content()
? https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-fit-content doesn't explain this explicitly, and it can't just be treated asauto
like in<length-percentage>
becausefit-content(auto)
is not valid syntax.I guess it should be treated as a normal
minmax(auto, max-content)
, without the specialfit-content
behavior? That would match thisfit-content
description:The text was updated successfully, but these errors were encountered: