Y
Hacker News
new
|
ask
|
show
|
jobs
by
riquito
4069 days ago
Performance is penalized too. Since CSS rules are parsed from right to left and you have probably a lot of "li" tags, the rule would be very inefficient. Of course this doesn't matter in small pages.
2 comments
mthoms
4069 days ago
I was going to ask why that is as it seems counterintuitive at first glance. Instead, I Googled it and found the following (excellent) answer at StackOverflow:
http://stackoverflow.com/questions/5797014/why-do-browsers-m...
I'm just provided the link here in case anyone else was wondering the same thing.
link
rimantas
4069 days ago
It does not matter in any real life pages.
link
riquito
4069 days ago
It did for Trello, to name an example (search for speed in
http://blog.trello.com/refining-the-way-we-structure-our-css...
).
link
I'm just provided the link here in case anyone else was wondering the same thing.