TIL CSS @Supports Rule
POSTED ON:
TAGS: css
Today I learned about the CSS @Supports Rule
The CSS @supports rule is a great way to check for a new CSS feature. For example, CSS comparison functions became supported in late 2019 - early 2020 and we don't have to wait for a year to use them.
@supports (width: clamp(20px, 10vw, 50px)) {
// do something..
}
VIA https://ishadeed.com/article/cross-browser-development/
Related TILs
Tagged: css