Write a fallback + @supports, run the same CSS in this browser and in a 2016 browser, see which rules are dropped and which block wins. An interactive…
Your visitors use all kinds of browsers, from the newest Chrome to an old WebView. @supports lets you use modern CSS without breaking the page in old browsers: those that do not know the feature get the fallback, those that do get the new version. As long as the syntax is right and the fallback stands on its own.
The browser picks for itself, and it only asks
@supports display: grid without parentheses Parentheses are required: @supports (display: grid). Without them the syntax is invalid and the whole rule is dropped, in every browser. Combine with and / or / not, each test in its own parentheses.(selector: :has()) to test a selector That reads as a test of a property named "selector": valid syntax but always false, so the block silently never runs. For selectors use selector(:has(*)).@supports makes a CSS feature work by itself It only asks, it is not a polyfill. A browser that does not know grid still cannot do grid, so a fallback outside the block is a must, and it has to work on its own with features that browser knows (margins, not gap), undone inside the block where it leaks.@supports (display: grid) The rule list says the rule is dropped. Grid is gone in a modern browser too, though CSS.supports in JS answers true.not preset or write @supports not (display: grid) That block is false on the laptop but true on the 2016 phone: a way to send CSS to old browsers only.and, one of them unknown E.g. (display: grid) and (display: frobnicate). One false, and the whole block is skipped.:has() with selector(:has(*)) True on the laptop, false on the 2016 phone: it does not even know the selector() function.