Dean Edwards has some alpha code that extends IE to parse style sheets using CSS2 selectors without using hacks. (I just wrote about Dean's Javascript Compressor last week)
This is impressive. This script provides IE with support for the following:
* namespace|selector
* parent > child
* adjacent + sibling
* [attr], [attr="value"], [attr~="value"]
* .multiple.classes (fixes bug)
* :first-child, :last-child
* :hover, :active, :focus
* :root
* Works with both HTML and XML documents
* Supports imported style sheets
* Preserves the cascade of the style sheet
* Does not alter the document structure
* Does not repeatedly query the DOM tree using JavaScript
* It uses pure CSS to enforce style sheet rules
* Works for Microsoft Internet Explorer 5.5+
Not bad eh? Especially when you consider it's alpha. And the implementation? Sheer genius. All you have to do to enable this is have a link to a stylesheet in your page. No special mark-up, no including scripts, no altering of CSS rules or selectors... Very, very good job Dean.
I'm very excited about IE7 new CSS improvements as I just finished a design theme for csszengarden.com
You can have a look at http://www.celebrityblog.net/zengarden/zengarden-sample.htm
Comments
Jane Jolin
I'm very excited about IE7 new CSS improvements as I just finished a design theme for csszengarden.com
You can have a look at http://www.celebrityblog.net/zengarden/zengarden-sample.htm
Posted by: Jane Jolin | September 8, 2005 11:01 AM