loading...

re: Improve your CSS with these 5 principles VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Generally the number of elements in a DOM is not going to be a significant performance problem to anyone (especially as its a client-side issue and...

Thank you for the very detailed and insightful answer. I guessed as much regarding the performance and the worst-case scenario. In any case, I think that having a single selector is the best way to go in terms of performance, code readability and flexibility.

In any case, having several levels of CSS selectors brings up some other issues, as described in "Open/Closed principle".

code of conduct - report abuse