[WSG] RE: Difference between applied CSS and Computed CSS

2010-02-25 Thread Stephen Holmes (Gmail)
Hi,

Just noticed this in the WSG List:

Removing any characters before !DOCTYPE ... really does miracles, because
now the layouts is much better under IE/Safari/Chrome/FF.

This is because if the first thing a browser sees is anything BUT a Doctype 
declaration it goes into Quirks mode. That would explain why the computed size 
of the font would have been 16pt, the default in IE 6 - the reason for quirks 
mode!

More: http://en.wikipedia.org/wiki/Quirks_mode

good luck


Stephen Holmes
IA/UX/EIB
stephenwhol...@gmail.com
Canberra, ACT, Australia

When you plant a tree, never plant only one. Plant three -- one for shade, one 
for fruit, and one for beauty. 
-African proverb



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] RE: Difference between applied CSS and Computed CSS

2010-02-25 Thread David Hucklesby

On 2/25/10 5:00 PM, Stephen Holmes (Gmail) wrote:

Hi,

Just noticed this in the WSG List:

Removing any characters before!DOCTYPE ...  really does miracles,
because now the layouts is much better under IE/Safari/Chrome/FF.

This is because if the first thing a browser sees is anything BUT a
Doctype declaration it goes into Quirks mode.


Clarification: that would be in IE 6 only. All other browsers are okay
with the DOCTYPE not coming first in the source.

I'd also note that default font size is 12pt, not 16pt. 12pt defaults to
16px at 96 DPI, at 20px at 120 DPI, and so on... But only in Internet
Explorer (all versions) and Opera, as far as I am aware. Webkit and
Gecko display 12pt as 16px at default settings - on my 120 DPI laptop,
anyway.

Cordially,
David
--



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***