Juicy / juicy-tile-grid

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.
http://juicy.github.io/juicy-tile-grid/
MIT License
8 stars 1 forks source link

Throw an error when CSS Grid is not available #7

Open warpech opened 9 years ago

warpech commented 9 years ago

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.

tomalec commented 9 years ago

Currently, we to that in demo via CSS selectors https://github.com/Juicy/juicy-tile-grid/blob/gh-pages/index.html#L57