Re: [css-d] Will this throw IE8 into quirks?

2008-11-13 Thread Bruno Fassino
bj wrote:

 !-- BEGIN: body --

 My question is-- will this throw IE8 into quirks? I know that
 anything before the doctype does it to IE7.

Yes, it seems that a comment before the doctype puts IE 8 beta 2 in quiks
mode.


 Secondly, what exactly IS IE8 quirks? Is it throwing it back
 to IE5  rendering, so I can just style for all IEs the same?

IE8 quirks should be the same as IE7 quirks. As far as CSS is concerned I
haven't noticed any differences.


 Third-- How is IE8 reading (or not) conditional comments?

Normally IE8 behaves as expected with a version vector 8.000, i.e. it skips
'lte IE 7', reads 'IE gte 8', ecc.
But it can be put in 'Compatibility Mode' where it reacts as IE 7 also to
CC. This can be done in more then one way, either by the user clicking the
'Compatibility View' icon, or by the author, with metatags or HTTP headers.
(And the above is a bit imprecise, since there are indeed more 'modes' in
which IE 8 can be put. Look at the MS IE blog if you need more precise
info).


Bruno


--
Bruno Fassino http://www.brunildo.org/test

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Will this throw IE8 into quirks?

2008-11-13 Thread Gunlaug Sørtun
bj wrote:

 I'm working on a template for cubecart. The template has this comment
  first, in the line before the doctype, and it is required:
 
 !-- BEGIN: body --
 
 My question is-- will this throw IE8 into quirks? I know that 
 anything before the doctype does it to IE7.

The comment throws IE8b2 into quirks mode, and IE8 final is expected to
go the same route. Don't think it has much choice, really, since
Microsoft have decided on full backwards compatibility :-)

 Secondly, what exactly IS IE8 quirks? Is it throwing it back to IE5 
 rendering, so I can just style for all IEs the same? Or am I gonna 
 have some sort of unimaginable nightmare when IE8 final hits?

IE8' quirks mode rendering will be identical to IE6 quirks mode
rendering on almost every point, so you can design for IE5.5/6 quirks
mode and expect it to work.
IE8 will not throw in any major surprises in quirks mode,
since it'll then stop supporting all CSS that IE6 doesn't support...

http://www.gunlaug.no/contents/wd_additions_34.html

 Third-- How is IE8 reading (or not) conditional comments? I googled 
 this and got a lot of conflicting answers. And I've been using lte IE
  7 conditional comment to try to futureproof my sites, so this has 
 relevance beyond the particular website I referenced above.

IE8b2 responds to !--[if IE 8] and not to CCs targeting other
versions. Mode doesn't matter, so IE8 won't pick up CCs for earlier
versions when in quirks mode.

This means you'll have to use an !--[if IE] or !--[if lte IE 8] for
that particular case. The former will probably be best choice since we
_expect_ all later IE versions to go into quirks mode rendering when
they see the comment on top. One can never be sure about anything when
dealing with future Microsoft releases though.

IE8 in super standards mode will render normal CSS quite well -
without any major quirks. Its CSS support doesn't go much beyond most of
CSS2/2.1 though...

http://msdn.microsoft.com/en-us/library/cc351024(VS.85).aspx

regards
Georg
-- 
http://www.gunlaug.no
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/