Go To Content
codylindley.com

codylindley.com

IE 7 Supports More CSS Selectors, Whip-e-dee-doo-da

Today, and most likely in the near future (damn you IE 6), client-side architects remain stuck with only a handful of CSS selectors that can be used in A-grade browsers. And it should be noted that even the 7 selectors available today do not completely work (depending upon the browser) according to the specifications.

Here are the CSS selectors we have to use until IE 5.5 and IE 6 are considered to be non-modern/A-grade browsers.

IE 7 has added support for the following selectors. Again however, these selectors based on the specifications have varying browser support/quirks.

Realistically this translates, to me, that of the 43 selectors available to us in CSS 3 we can only use 13 of them (with varying support) when IE 5.5 and IE 6.0 are no longer considered modern browsers. So, whip-e-dee-doo-da I wonder how many years it will be before we get to use only 13 of the 43 selectors available?

 
  1.   #1 Comment Posted by Hugh Griffith on Nov 10, 10:24 AM

    Um, I think that’s supposed to be spelled whippee-dee-doo-da.

  2.   #2 Author Comment on Nov 10, 10:26 AM

    @Hugh – Sure, if you like following rules that is.

  3.   #3 Comment Posted by John on Nov 10, 01:47 PM

    I am siding with whoopi-do.

  4.   #4 Comment Posted by Carlos Eduardo de Souza on Nov 10, 02:00 PM

    I think it’s too important to IE support more CSS selectors, but, today, we can’t expect that most users will update their browser.

  5.   #5 Comment Posted by figgy on Nov 10, 10:48 PM

    Ya know, we are the ones who make the Internet, after all. The more of us who continue to develop our code to standards, the more unlikely IE will be able and/or willing to keep up. This will take some time to happen but it will happen.

  6.   #6 Comment Posted by Sten Hougaard on Nov 11, 04:53 AM

    Cool! I am looking forward to implementing sites using this kind of advanced styling!

    Things like the attribute bases selector, wow, that will move some formerly javascript based coding into CSS based mark-up!

  7.   #7 Comment Posted by Robert on Nov 13, 02:58 AM

    I dont really think that any web developper in their right mind would already target their site to css3 at this moment ..maybe in a year or 3.

    That said, that then means that IE7 supports 13 of the 19 (8 css1, 11 css2) selectors.

    PS. i only see 39 selectors in that list

  8.   #8 Author Comment on Nov 13, 04:04 AM

    @Robert – I’m not sure how you are counting but most consider there to be 43. For example

  9.   #9 Comment Posted by Tim J on Nov 13, 05:57 PM

    I just upgraded to IE7 but am now concerned the sites I test in IE7 will not be stable in IE6…can you have both versions running?

  10.   #10 Comment Posted by Pelle on Nov 14, 01:29 AM

    Tim J: Yes you can

    Isn’t it important that we use selectors not supported by IE 7 to force Microsoft into supporting them? Why should a regular user change their browser when every page looks exactly the same in Firefox as Internet Explorer? A site shouldn’t look bad in IE but why shouldn’t it look better in Firefox and the other modern browsers? As long as a new selector doesn’t break your design – use it!

  11.   #11 Comment Posted by matias quaglia on Nov 14, 07:55 AM

    Well, I think that in five or six years IE will be a good browser, in the meanwhile, we must educate that it is just bullshit and show some nice alternative browser that make our work better and faster.

  12.   #12 Comment Posted by Kaltienne on Nov 15, 03:30 PM

    Pelle: Most of those who design websites,myself included, generally are designing them to be read by the general public (who, some of which are internet-uneducated even to the point of not knowing that there is more than one browser available to them). While we are all incredibly frustrated by the fact that Microsoft continues to push out sub-par browsers, we are forced to design for them as well in order to get our overall message out to the masses (with it’s amazing design no less).

    It is horrible but ultimately it would not be Microsoft that loses but those companies who refuse to design for every platform/browser.

  13.   #13 Comment Posted by tedd on Nov 16, 08:20 AM

    First, thanks for the listing of the names of the current CSS selectors, while I’ve worked with those before, I never knew all their names.

    Second, in your last paragraph, you state that we can use 13 of the 43 selectors and than ask how many years will it be before we can use 13 of the 43 selectors? I think you meant to say ”.. how many years before we can use all of the 43 selectors?”

    Third, re the debate over “Whip-e-dee-doo-da”, I prefer “Big whoop”—besides, it Googles better.

    tedd

  14.   #14 Author Comment on Nov 16, 09:21 AM

    @Ted – Nope, its meant as stated. Meaning that we can’t even use 13 of the 43 today, and when we can (IE7 is widely used) its still only 13 of the 43. Makes sense?

  15.   #15 Comment Posted by dr john on Nov 17, 08:00 AM

    Just out of interest, how many of the css3 selectors does FF 1.5 support, and how may does FF 2.0 support? A list or link if possible.

    And as I may have missed it, when was css3 moved from draft phase to its finalised form?

  16.   #16 Comment Posted by Klaus Hartl on Nov 21, 12:36 AM

    Just to correct a few things: IE 6 and 7 do not support :focus.

    :first-line and :first-letter are already supported since IE 5.5.

  17.   #17 Comment Posted by Jens Meiert on Jan 4, 08:36 AM

    Update: Apparently, IE 7 also supports selectors that use the General Sibling combinator “~” [1].

    [1] http://www.w3.org/TR/css3-selectors/#selectors

  18.   #18 Comment Posted by Gauthier on Apr 18, 07:27 PM

    Now sadly I designed my myspace site. ( Yes I recently became a myspace slut. ) I designed it using all selectors the IE 6 didnt support. However Firefox pulled it off just fine. Then I read someone there IE 7 was suppose to be complient in that realm. I went off to test it. The rendering was exactly the same as IE 6, which is very sad.
    Look here in both firefox and IE * (whatever version )
    myspace.com/paintedgauthier