-
Notifications
You must be signed in to change notification settings - Fork 757
Closed
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.css-grid-1css-grid-2Subgrid; Current WorkSubgrid; Current Workcss-grid-3Masonry LayoutMasonry Layout
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?
Metadata
Metadata
Assignees
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.css-grid-1css-grid-2Subgrid; Current WorkSubgrid; Current Workcss-grid-3Masonry LayoutMasonry Layout