3 ms·
Also note that every browser that supports grid also supports @supports: https://developer.mozilla.org/en-US/docs/Web/CSS/@supports https://developer.mozilla.or
by Vinnl 10y ago
Also note that every browser that supports grid also supports @supports: https://developer.mozilla.org/en-US/docs/Web/CSS/@supports https://developer.mozilla.org/en-US/docs/Web/CSS/@supports
This means that you can start implementing it today for modern browsers, and then remove the old one once you are ready to ditch old browsers.
- talmand 10y agoEvery browser supports @supports. If the browser doesn't know what @supports is, it ignores the entire block.
- Vinnl 10y agoActually, if a browser did support grid but not @supports, wrapping your grid in @supports would result in the grid rules not being used.
- talmand 10y agoWell, that is true. My caveat is that currently @supports is far more heavily supported than grid layout which is not fully available in any current browser. As usual, only IE is the major holdout for @supports and most likely we'll be doing special things for IE until it totally dies out anyway.