Closed
Description
Testcase: https://codepen.io/leaverou/pen/dyZPoRz
Right now, all browsers seem to be treating any fr
in calc()
as invalid, even calc(1fr)
, which is unfortunate, since using calc()
to calculate the ratio between grid columns is quite useful. E.g. my use case went something like:
grid-template-columns: calc(1fr * var(--divider-ratio, .5)) calc(1fr * (1 - var(--divider-ratio, .5)));
Is this per spec, or is it just a misunderstanding of this note by implementors?