You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have block(height: 1fr) just work, at least for non-breakable blocks. Currently it throws an error because fractional height is not supported. A workaround proposed on discord is
Using 1fr in a single-cell grid doesn't work because of #2571.
Other workarounds involving computations with the current location and page margin are not ideal since it's difficult to get the current margin in a way that works in all cases (margin: auto, margin: 1cm, margin: (left: 1cm) and the worst: margin: 1em).
Use Case
A typical use case is to make an element use the remaining space on a page (see here, here and here). For example I wanted to draw a grid with cetz in the space remaining under a question (to emulate grid paper).
Activity