You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@supports (display: flex) {
div { display: flex; }
}
not Keyword
@supportsnot (display: flex) {
div { float: left; } /* alternative styles */
}
Multiple Checks and Conditionals
/* or */@supports (display: -webkit-flex) or
(display: -moz-flex) or
(display: flex) {
/* use styles here */
}
/* and */@supports (display: flex) and (-webkit-appearance: caret) {
/* something crazy here */
}
/* and and or */@supports ((display: -webkit-flex) or
(display: -moz-flex) or
(display: flex)) and (-webkit-appearance: caret) {
/* use styles here */
}
JavaScript CSS.supports
varsupportsFlex=CSS.supports("display","flex");varsupportsFlexAndAppearance=CSS.supports("(display: flex) and (-webkit-appearance: caret)");varsupportsCSS=!!((window.CSS&&window.CSS.supports)||window.supportsCSS||false);