Masonry-like Custom Element for sortable tiles that packs efficiently without changing HTML structure (changes CSS only), and adapts it to CSS Grid Layout. Extended renderer for juicy-tile-list.
To feature detect CSS Grid, it is enough to check document.createElement("div").style.gridRow === "".
When Grid is not supported, let's make an error. Should it be a JS error or just console.error, that's up for discussion. I vote for console.error for beginning.
To feature detect CSS Grid, it is enough to check
document.createElement("div").style.gridRow === ""
.When Grid is not supported, let's make an error. Should it be a JS error or just
console.error
, that's up for discussion. I vote forconsole.error
for beginning.