Previous Message
Next Message

Re: [css-d] box model hack

Sent by Ralph Brandi on 12 February 2002 18:06


>From: Andrew Clover [EMAIL-REMOVED]>

Andrew,

Thank you for an exceptionally clear explanation of Tantek Celik's box model hack and the simplified
version.

>This applies to both the original BMH and the SBMH. First, you must use
>a Strict-mode DOCTYPE in your HTML. IE6 supports CSS escapes properly,
>but it will only use the correct box model in Strict. In Quirks mode it
>would read the 'correct' value from the CSS but use it in the same 'wrong'
>way as IE5 did.

This was the one bit that confused me a little.  My understanding of the IE mode switch was that if
your DOCTYPE contains a URL, it uses the modern rendering engine, otherwise it uses the
backward-compliant quirks mode.  So for example, the following DOCTYPE would use the shiny new
renderer:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">

But the following would use the old quirky renderer:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">

The way you wrote the above paragraph, however, implies that both of these will use the quirky old
renderer, and that in order to use the shiny new renderer, your DOCTYPE would have to be something
like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd">

Is this true?  Are XHTML 1.0 Transitional documents rendered with the old engine?
-- 
Ralph Brandi   [EMAIL-REMOVED]   http://www.brandi.org/

"Any revolution that goes on for too long is by definition a failure. 
The idea is to become the establishment." - Linus Torvalds
Previous Message
Next Message

Message thread:

Possibly related: