Basic supports usage
suggest change@supports (display: flex) {
/* Flexbox is available, so use it */
.my-container {
display: flex;
}
}
In terms of syntax, @supports is very similar to @media, but instead of testing media features, @supports tests whether the browser accepts a given declaration.
Rather than writing @supports (flex), write @supports (display: flex).
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents