IE 7, web standards and CSS support
The Internet Explorer team is preparing to ship the next major version of the world’s most popular browser. The IE team has written an update on which CSS bugfixes that will make it into the final release.
Update of existing CSS on websites
Before we get to that rather long list, I feel it’s important to know what will change from the web developer’s point of view. The update list is a must read to anybody responsible for a website rendered in web standards mode (so called “strict mode“). For IE7 backwards compatibility, changes are not applied in quirksmode.
Personally and professionally I’ve been using strict mode for a long time (as it made IE6 pages look more like Firefox pages), and that means that I probably have to check my previous pages with IE7, at least to make sure that they don’t rely on any of the bugs mentioned below.
To sum it up your pages are probably safe and renders the same way in IE7 as in IE6 in the following situations:
- If they render in quirks mode
- If they render in strict mode but don’t rely on the bugs below to filter out information from IE
So the safest thing is probably to check existing CSS files for use of the bugs that the IE team fixed in IE7.
CSS bugs fixed
On IE blog, the following list of CSS bugs that IE7 will fix:
Here is the list of CSS features and changes for IE7:
Bugs we fixed
- All bugs on positioniseverything.net except the “escaping floats” bug (which is planned for the future)
- Peekaboo Bug
- Internet Explorer and Expanding Box Problem
- Quirky Percentages
- Line-height bug
- Border Chaos
- Disappearing List-Background bug
- Guillotine Bug
- Unscrollable Content bug
- Duplicate Characters Bug
- IE and Italics
- Doubled Float-Margin bug
- Duplicate Indent bug
- Three pixel text jog
- Creeping Text bug
- Missing First letter bug
- Phantom box bug
Details on some of the other bugs (from sources other than the positioniseverything.net list) that we fixed:
- Overflow now works correctly! (That means boxes do not automatically grow any more.)
- Parser bugs: * html, _property and /**/ comment bug
- Select control: CSS style-able and not always on top
- Auto-sizing of absolute positioned element with width:auto and right & left (great for 3 column layouts)
- Addressed many relative positioning issues
- Addressed many absolute positioned issues
- % calculations for height/width for abs positioned elements http://channel9.msdn.com/ShowPost.aspx?PostID=191182
- < ?xml> prolog no longer causes quirks mode
- HTML element truly independent of the Body (now gets its own width, height etc.)
- 1 px dotted borders no longer render as dashed
- Bottom margin bug on hover does not collapse margins
- Several negative margin issues fixed
- Recalc issues including relative positioning and/or negative margins are fixed now
- CLSID attribute of
- :first-letter whitespace bug described in http://blogs.msdn.com/ie/archive/2005/09/02/460115.aspx fixed
- Descendant selector now works properly for grand children when combined with other selectors
- First-line and first-letter now applies when there is no space between word :first-line and opening brace {
- Pseudo-classes now are working as expected if selector is excluded
- The :link selector works now for anchor tag with href set to bookmark
- Addressed !important issues
- PositionIsEverything piefecta-rigid.htm now works
- List-item whitespace bug fixed
- Fixed Absolutely Buggy II
- Absolute positioned elements now use always correct containing block for positioning and size information
- Nested block elements now respect all overflow declarations (hidden, scroll, etc)
- Fixed the opposing offset problem (absolute positioned element whit all four top, bottom left and right are present)
- tags nested within LI elements will no longer add extra bottom margin when hover occurs
- We no longer lose the image aspect ratio on refresh
- Cleaned up our ident parsing according to CSS2.1 rules
- Fixed parsing bugs for multi- class selectors and class selectors that are combined with id selectors
- And many more
We also extended our existing implementations to comply with W3C specifications:
- Enable :hover on all elements not just on
- Background-attachment: fixed works on all elements – so Eric Meyer’s complexspiral demo works
- Improved
Finally, we added new features from CSS2.1:
- Min/max width/height support (also for images, which did not work in IE7b2)
- Transparent borders
- Fixed positioning support
- Selectors: first-child, adjacent, attribute, child
- A couple of CSS 3 attribute selectors: prefix, suffix and substring since we were working already in the code base (also the general sibling selector)
- Alpha channel PNG support (Not a CSS feature but too important for designers to not call it out)
Web standards support: Web development Nirvana
The better support of web standards is a major leap forward to web developers and website responsibles. This is a step towards “web development Nirvana” where a website only has to be written in one way. No browser specific hacks or quirks are needed in web development nirvana, because all browsers (eventually) understand HTML and CSS the same way.
However, even IE7 web standards support is a giant improvement over IE6, there are still a long way to go before we can acheive that ultimate goal. According to Nate Koecheley of Yahoo!, there are currently over 10,000 different combinations browser versions and operating systems (see Golden nuggets for describing browser support). So there is still plenty of work for anybody who understands browser quirks, bugs, hacks and anomalies of different browsers on different platforms.
Test IE7 and IE6 side by side
I have previously written about how to run IE7 beta side by side with IE6. But according to Jon Galloway (inventor of the trick), this only works up to before IE7 Beta 3. But the good thing is that he is working on an update.
I hope to learn that somebody are able to “flip around” this solution (so that we can get IE 6 to run as standalone in the same way as IE3, IE4, IE5, IE5.5). Please let us know if you already know how to do that trick.
Update: All IE Browsers Standalone On Same PC (September 28, 2006) solves the problem.
Technorati Tags: internet explorer, ie 7, microsoft, browser, css, standalone, web standards, strict mode, quirks mode
August 28th, 2006 at 11:10 (GMT-1)
Internet Explorer 7 Release Candidate 1 in standalone mode:
http://tredosoft.com/IE7_standalone
August 28th, 2006 at 11:27 (GMT-1)
Oh and by the way, you can get IE6 in standalone mode:
http://browsers.evolt.org/?ie/32bit/standalone
September 28th, 2006 at 10:31 (GMT-1)
[…] Yousif Al Saif of Tredosoft is probably best known for the IE7 standalone browser installer that can run isolated on a Windows machine without disturbing the version already installed. I wrote about this in “IE7, web standards and css support“. […]
October 1st, 2007 at 15:58 (GMT-1)
The web page below uses an iframe using a height with a 100% value. The web page renders fine in Mozilla Firefox, Apple Safari, Opera and many other browsers. IE7 is the only web browser that has severe difficulties in displaying the iFrame and its content correctly.
http://www.history-of-aviation.com/poster/1919-1932/POSTER-C-BFW-U12-01/index.php
The web page was developed in compliance with css standards. It is a real pain to see that IE7 is still not following the css rules of web standards. I believe IE developers have still some work to do here.
My 2c,
Marc Klein
mediaVinci – The art of invention
March 24th, 2008 at 13:55 (GMT-1)
Sweet tutorial, just what I have been looking for.
I have added you to Stumbleupon.
June 25th, 2008 at 12:50 (GMT-1)
i have dropdownlist in Asp.net 2.0 and i want to change its border.By defualt there is no such property to change the border for this control. i use css but the border visible in Fire Fox 3 not in Internet Explorer 7. Whereas IE7 supported the border-color property.Any advice regarding the issue is highly appriciated. Thanks in advance.
July 7th, 2008 at 08:41 (GMT-1)
Hi there, I noticed that you mentioned “Select control: CSS style-able and not always on top ” is fixed in IE7, but the border-width and border-color still doesn’t work for IE7, is there any way to get around that? Thanks.
April 18th, 2009 at 03:35 (GMT-1)
[…] IE7, Web Standards and CSS Support – Jesper Ronn-Jensen […]