nib column() missing max-width constraint for fluid containers
0 reputation · 03 Oct 2020, 15:21 UTC
nib column() missing max-width constraint for fluid containers
The goal is to guarantee that a fluid grid defined with nib’s column() mixin does not overflow its parent container. In practice, the mixin currently omits a max-width declaration, which leads to layout breakage when used with fluid units.
Key constraints: compatibility across Stylus releases 0.61–0.63, the behaviour of the --compress flag (which drops max-width), and the interaction with the rupture grid plugin that relies on nib. The documentation does not specify a default max-width fallback, leaving developers uncertain about the intended behaviour.
Unresolved questions:
- Does
nibprovide a defaultmax-widthforcolumn()that is currently undocumented? - How does the
--compresscompilation flag affect the presence ofmax-widthin the generated CSS? - Which Stylus version introduced a reliable
max-widthfallback, and what migration steps are required for older projects?