How to check if a CSS property or value is supported by a browser?
There is the new API CSS.supports. Supported in most browsers except IE. console.log( // CSS.supports(property, value) 1, CSS.supports(“text-decoration-style”, “blink”), 2, CSS.supports(“display”, “flex”), 3, CSS.supports(‘–foo’, ‘red’), 4, CSS.supports(‘(–foo: red)’), // CSS.supports(DOMstring) 5, CSS.supports(“( transform-origin: 5% 5% )”), 6, CSS.supports(“( transform-style: preserve ) or ( -moz-transform-style: preserve ) or ” + “( -o-transform-style: preserve ) or ( … Read more