rachelandrew / gridbugs

A curated list of Grid interop issues
MIT License
1.18k stars 25 forks source link

Edge - Stacking grid items on top of one another #14

Closed matchboxhero closed 7 years ago

matchboxhero commented 7 years ago

I've created a grid in CSS using progressive enhancement to use inline-block, then flexbox and then CSS Grid. The system works in all browsers except for Microsoft Edge.

In Edge the grid items are being stacked on top on one another. The code I have for CSS Grid is written inside a @supports tag which Edge seems to think it supports.

I'm not entirely sure where the problem is occurring or if the problem is part of my codebase but it works across all of the other modern browsers.

https://codepen.io/matchboxhero/pen/OjEWqV?editors=1100

rachelandrew commented 7 years ago

Current Edge does not support grid layout, but instead the prefixed older version of the spec.

For any future issue, please provide a Reduced Test Case.

matchboxhero commented 7 years ago

Thank you for your reply.

I understand that it's still using the prefixed version but then is it not a bug that @supports(display:grid) is set to true in edge when it doesn't work. What's the point in having feature detection in CSS if the browsers are going to return false positives.

Apologies, I know it's not your fault, it's just annoying that the only browser it doesn't work in is Edge and it's because it 'thinks' it is supports grid.

Maybe I'm missing something? 🤔

rachelandrew commented 7 years ago

I would suggest posting somewhere like Stack Overflow, with a reduced test case.

matchboxhero commented 7 years ago

Thanks