If the first line of my CSS file looks something like this:
Are there any browsers (save for maybe ancient mobile browsers or similar edge cases) that don't support that rule? The reason I ask is that I've noticed most of the common CSS reset stylesheets start off with loooong tag lists, when they could all just do it with an asterisk, unless there's some browsers that don't support that.
The reason you don't use the universal selector is due to performance issues.
setting a style on every element requires the browser to look for every element in use.
All modern browser support it I believe - check out these charts:
- Regular browsers: http://www.quirksmode.org/css/contents.html
- Mobile: http://www.quirksmode.org/m/css.html
Older browsers like Netscape Navigator I believe don't. Also, I know some browsers will apply that style to things like the html, head tags or even comments which could produce some undesired results - though I can't recall which browsers do this.