I want to test if a particular css property attribute is supported in the browser. For a css property, i can do it like
document.createElement("detect").style["-webkit-overflow-scrolling"] === ""
But what if i have to check for a particular class or attribute. For example, i want to test the support for
position:fixed
How can i do that(apart from using Modernizr)? Pls help.
FIDDLE