6

Which browsers are able to understand and implement asterisk ( * ) in CSS properly? (By 'properly' I actually meant -- 'as they are supposed to'.)

Consider this CSS code for example:

pre .comment * {
  color: #800;
}

EDIT: I see now that it's called the '* selector' or 'universal selector'. Thanks a lot for the input. :)

its_me
  • 10,998
  • 25
  • 82
  • 130
  • Mind that the universal selector as it is called is a very expensive one and its use is discouraged. See `https://developer.mozilla.org/en/CSS/Universal_selectors` and the chart on Steve Souders' article at `http://www.stevesouders.com/blog/2009/06/18/simplifying-css-selectors/` – Matijs Apr 03 '12 at 07:44
  • @BoltClock'saUnicorn : Oh, I meant 'as they are supposed to'. Edited to make it more clear. – its_me Apr 03 '12 at 07:55
  • @Matijs Thanks for the pointer. Will keep in mind, but I absolutely have to use it in my case. The example in my question is exactly that. I using that in my syntax highligher. – its_me Apr 03 '12 at 07:58
  • Okay, I also found a link that help -- http://webdesignerwall.com/tutorials/css-specific-for-internet-explorer – its_me Apr 03 '12 at 08:05

2 Answers2

6

All major browsers do. Internet explorer supports it without bugs from 8.0.

See here: http://reference.sitepoint.com/css/universalselector#compatibilitysection

ONOZ
  • 1,390
  • 2
  • 11
  • 19
1

According to this tab, all modern browsers should understand it...

Gatekeeper
  • 1,586
  • 3
  • 21
  • 33