Article produced in cooperation with WASP http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ietechcol/cols/dnexpie/expie20050831.asp
What can you do?
IE6 and below: Use of Holly hack is ok
IE7 (if needed): conditional comments + zoom:1;
How Do We Analyze Breaks?
What’s Next For IE
With the release of the MIX build we are locking down layout changes
Please test your pages!
We know we are not done yet
Committed to full CSS2.1 support in the future
Working on public bug database where you can report and track your issues
Call To Action
Dev community and Microsoft are dependent on each other
Improvements in standards support mean that behavior will change
End users do not like broken pages
So we need your help!
Please prepare your pages to be ready for IE7
Please send us feedback - [email_address]
We have great documentation that will help you: www.msdn.com/ie
Community Resources
At MIX
MIX Chat – We’re heading over there after this talk!
IE Compatibility lab
After MIX
IE Dev Center: http:// msdn.microsoft.com/ie /
IE Blog: http://blogs.msdn.com/ie/
IE feedback alias: [email_address]
Session Evaluations We value your feedback, so please submit an online evaluation for each session you attend! To make it worth your while, we pick one evaluation from each of the ten session timeslots. If we pick your eval, you will be eligible to win a Creative Zen MicroPhoto
Appendix
3 Pixel Text Jog Before (IE6) and After (IE7)
IE7:
Before:
Notice the gap?
A Word about HasLayout
Are there side effects?
Content of the element cannot flow around other boxes
bad for float based layouts
An element with layout cannot "shrink to fit" its children
Can I still force layout in IE7?
Yes, {zoom:1;} still works
HTML element independent of Body
Viewport of Scrollbar is now outside of the HTML element
Accordance with section 11.1.1 in CSS2.1 spec
Viewport has 2px window border that can not be influenced
Benefit:
Set margins on HTML element
Size the HTML element
Set borders etc.
Allows absolute/fixed positioned elements on the right viewport edge
auto alignment for building flexible 3-column layouts
We would not recommend to use CSS filters since they are not supported
Neither by standard body nor implementers
Are there inherently bad?
No, if they are used with caution
Target ONLY "older than current" (frozen or abandoned) versions of browsers
Be aware that they are filters (Mark them for maintainability)
Overflow (1of 2)
Overflow allows to specify whether content of a block-level element is clipped when it overflows the box
IE6 used to grow the boxes (min-height)
Prevented us from implementing min/max-width/height
Look at code:
<style type="text/css"> div { width : 100px; height: 100px; border: thin solid red;} blockquote { width: 125px; height: 100px; margin-top: 50px; margin-left: 50px; border: thin dashed black} cite { display: block; text-align: right; border: none} p { margin: 0;} </style> <div> <blockquote> <p>some text long enough to make it interesting.</p> <cite>- Foo </cite> </blockquote> </div>
Overflow (2 of 2)
The CSS2.1 default is overflow: visible
All sites that tended to enlarge boxes will now overflow
We only implemented this for non-replaced block level elements and inline-block elements
Not supporting table-cells
pages will still be printed using the old behavior
Before IE7
Native XMLHTTP
In IE7, XMLHTTP is now also exposed as a native script object
Can be instantiated using the same syntax across different browsers
Decouples AJAX functionality from an ActiveX enabled environment
Syntax if (window.XMLHttpRequest){ // If IE7, Mozilla, Safari, etc: Use native object var xmlHttp = new XMLHttpRequest() } else { if (window.ActiveXObject){ // ...otherwise, use the ActiveX control for IE5.x and IE6 var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } }
In this session, learn how to build and maintain st more
In this session, learn how to build and maintain standards-based sites that work great in IE7. Learn how to take advantage of new capabilties such as better HTML and CSS standards support, RSS and Search integration, and new security features. less
0 comments
Post a comment