1
I was just applying a CSS Reset to my website. I usually use the one suggested by Eric Meyer http://meyerweb.com/eric/tools/css/reset/ . But I was looking at Diego’s suggestion http://tableless.com.br/css-reset/ that is so :
* {
margin:0;
padding:0;
list-style:none;
vertical-align:baseline;
}
I found it cool, simpler (of course Eric Meyer’s is more complete.)
I was testing on my Visual Studio Express 2013 for Web, and Web Essentials fired a warning saying :
Performance : Never use the universal selector. It has a big Negative performance Impact on browsers Rendering.
Translating :
Performance : Never use the universal dial. This has a great negative performance impact on browser rendering.
Why the universal dial *
causes this negative impact on the rendering of browsers?
I don’t know, huh. When CSS3 showed up, it had a website, I don’t remember which one, did a type of browser benchmark to see what effects it supported and how fast they were processed. Hence it is logical: if an effect is too heavy for a dial, if applied to the universal the thing gets ugly.
– Bruno Augusto
@Brunoaugusto, the last test I saw was 2009, and I don’t believe it’s gotten any worse. At the time the impact was considered insignificant for all major browsers, mainly taking into account the cost aspect of development, suggesting more attention to the application of certain particularly heavy rules (not the selector) and your interactions with javascript. Along with CSS3, there has also been a lot of evolution in browser technology. In time, I just found this link from 2012: http://blogs.telerik.com/kendoui/posts/12-09-28/css_tip_star_selector_not_that_bad
– Blau
Anything older than this? The original article I used in the translation mentions 10 years. How was the thing in 2004 or earlier?
– Bruno Augusto
Until 2004, precisely, when it began to avenge the idea of web standards, good practices, tableless, flash is evil thing, etc... Nobody cared about that. Layout was with tables, sliced images, and period. Good site had to have flash with at least 10MB (by the time the average download was 256kbits/second) and animations for everything that is side. The most CSS was used to change the link color or hide miles of keywords for Google to find.
– Blau
Quite interesting :)
– Bruno Augusto