Suppose that there are no selectors in the stylesheet that do not have any style information in them, so they are actually empty (do not have style declarations):
.main-menu {}
Will the browser search for them?
I feel that this will depend on the browser, so a smart programmer would say βif the selector remote doesn't botherβ, but not all browsers will have such an enlightened implementation. Had a quick search and couldn't find anything, wondered if anyone knew about this in this regard ...
Best practice, I'm sure you don't have selectors with empty declarations, since they are a waste of space and time, does W3 say something about this?
Thanks!
performance html css
user1360809
source share