Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think one additional point to consider when adding it as a new display mode vs re-using grid, is that currently these demo's fallback quite nicely now when it's re-using grid. Instead of showing it as masonry (since my browser doesn't support it), it at least behaves as a grid. If it's a new display: X property, it will fallback to div behavior with the content all over the place in unsupported browsers.


you could simply do: "display: grid; display: masonry;" and all not-supporting browsers would skip the second declaration.


This is assuming there isn’t any cross pollution of shared properties either.


`@supports masonry { shared-property: 1; }`




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: