On Aug 1, 2006, at 5:22 PM, Nick Gleitzman wrote:

Hmm - OK, answers own question - FF on my Mac, with a little digging (Firefox.app > Show Package Contents > Contents/MacOS/res/) coughs up a file called html.css - which *appears* to contain the defaults.

There's a bunch of others, too:
forms.css
mathml.css
platform-forms.css
quirk.css
ua.css
viewsource.css

Those are indeed the stylesheets that control how Gecko renders pages by default. Except for platform-forms.css, which does not exist anymore in Fx 1.5. Safari uses very similar rules, stylesheets can be found in System -> Library -> Frameworks -> Webkit.framework and drill down further. Opera's defaults are hard coded in the binary and not accessible, but look more or less like the sample html 4.0 stylesheet in the CSS 2.1 docs.

iE's stylesheets are hard coded as well, and not publicly available. I often noticed, though, that left on its own (using defaults) that browser can be rather helpless. It is better to specify everything you need (margin/padding/line-height/...) to avoid problems.

Beside looking at the UA stylesheets, a good reference for the defaults is the HTML 4.01 DTD. (e.g. p, hx, div have {display:block} by default).

Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>





******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to