I'm writing some Modernizr extensions to detect browser support for things such as :first-child, :last-child in CSS. In order to do so I'm applying a style and then checking to see if teh element has that style.
What's the most-reliable CSS property to use as my test style?
e.g. color is a bad choice as if you enter in #123abc the browser may convert it to rgb(#,#,#)
So I'm looking for a property that
- Is supported across browsers
- Won't be mutated to a different format by the browser
At the moment I'm using width, which is probably OK, but thought I'd check here anyway.