CSS Selectors: Opera and Safari pass the test!
Monday, 11 February 2008
Back in 2006 support for many of the more advanced selectors were still very limited. Most browsers did not support the new selectors introduced by CSS level 3 at all and even support for the selectors from level 2 were plagued with bugs. Two browsers stood out: Konqueror in a positive way and Internet Explorer at the other end of the spectrum. Konqueror was the only one that came close to passing the test and eventually became the first to pass it completely. Internet Explorer was exposed as the only browser failing even one of the most basic level 1 selector: the class selector.
It’s now almost two years later and while we still have only one browser that officially passes the CSS selector test, things are going to change very soon.
Opera has been working hard on improving CSS selector compatibility and has announced that the upcoming release of Opera 9.5 is going to pass the test. You can download the beta version yourself to try it out.
Safari and Webkit
Opera and Konqueror will soon be joined by Safari because the latest revisions of the WebKit engine it uses, also passes the complete test. You can try it out for yourself by downloading a nightly build. This is quite a big deal, because the Webkit engine has become quite popular lately and is used as the HTML engine inside Adobe AIR, Google Andriod, Qt and of course it powers the iPhone.
Firefox performed the second best in the original selector test, but has fallen behind. While some bugs were fixed it doesn’t look like the upcoming Firefox 3 is going to pass the selector test.
That leaves us with Internet Explorer. Internet Explorer 7 improved support somewhat, but it was not nearly enough to come close to any of the other browsers. What Internet Explorer 8 is going to do is still a big question. The IE team has certainly been working hard on improving their standards support but it is still unknown which standards they chose and to what level they are going to support those standards. Not without controversy they announced that they will pass the Acid 2 test but that’s all we’ve heard so far. Without a doubt they will have improved their selector support, but whether it is enough to pass the test… only time will tell (Unless you work on the IE team and have some inside information you’d like to share).
Below the updated table:
|Firefox||3 beta 2||32||4||7||369|
|Opera||9.5 beta 1||43||0||0||578|
One interesting development is that the upcoming Acid 3 test includes a large number testcases that overlap our own CSS selector test. Acid 3 tests the support for many of the CSS level 2 and 3 selectors, but also for some very specific bugs in CSS selector implementations. It looks like it will be very hard to fail the CSS selector test if you pass the Acid 3 test. This is very good news for CSS selector support and is already responsible for the increased attention at Apple for making the WebKit engine pass.