3 ms·
I need the 1%. I want browser masonry support. Right now only Safari has it baked in properly, the rest I have to code around in a sub-optimal way: https://dev
by qingcharles 3y ago
I need the 1%. I want browser masonry support. Right now only Safari has it baked in properly, the rest I have to code around in a sub-optimal way:
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Masonry_layout https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_la...
I think Safari has it because the guy that wrote the spec now works at Apple. Not 100% sure of that, but seems that way.
The code is in Chromium, just nobody ever hit the GO button.
- krsdcbl 3y agotbh I'm glad, not sure about patching in an extra magic keyword with it's own set of new properties to achieve one specific layout pattern popularized by a jQuery lib in css grid module. It would have been much cleaner to add "auto-span" utility to grid-column and grid-row that allow to define "overflow snapping" if items are larger than template definitions, with an option for grid-auto-flow to affect packing logic This draft feels like it's solving a single use case by stacking presets over the grid api instead of exposing tools to achieve that use case