View Single Post
Old 05-24-2014, 11:33 PM   #22
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,461
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@arspr: The inspector does not sort rules by selector specificity. Try the following simple experiment: Add !important to a property from a stylesheet and add the same property to a style attribute. Even though the property from the stylesheet wins, the inspector will show the property from the style attribute first.

Indeed sorting by selector specificity makes no sense, it would result in a list that is very difficult to understand, since selector specificty is very complex.

And inherited properties are shown in order of tag inheritance in Live CSS, which makes much more sense than selector specificity.
kovidgoyal is offline   Reply With Quote