View Single Post
Old 01-07-2023, 03:35 AM   #4
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,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The new check rule encourages you to put the css rules in the order of increasing specificity. This is because when there are two mechanisms at play for the order in which CSS rules are applied. The specificity of the selector, and when that is the same, the position of the rule in the source. By re-ordering the rules so that these match you can tell at a glance which rule is more significant without having to compute its specificity in your head.

I could have Remove CSS rules/Beautify CSS also re-order them by their specificity to avoid seeing this warning, it shouldnt be much work to implement.
kovidgoyal is offline   Reply With Quote