<style
type="text/css"> body {background:
black; color: white} </style>
. See the CSS-Discuss
Wiki for more information. This hack was discovered by Dominik
Boecker.\html div {padding:1em;}
or di\v
{padding:1em;}
. See Edwardson
Tan’s test page for more information. Note that any character
escaping within a stylesheet hides the whole stylesheet from Netscape
4.
Character escaping on the selector also hides the rule from Safari,
which may not be what you want.\padding:1em
or paddi\ng:1em
. This
also
hides CSS from OmniWeb. First-letter escapes also hide the CSS from
Safari, but escapes on other letters do not. html body
as a selector with identical effect
to body
. In this respect it emulates the parsing problems of
Netscape 4. However, because it doesn't have the excess margin on body
issue that Netscape has, this means it has problems with the workaround for Netscape's
window margins documented by Char James Tanny and Mark Howells (iCab actually
displays the negative margins). MacEdition suggests using an imported stylesheet
in addition to the html body selector, to override the negative margin Netscape
4 requires to generate a zero margin.BODY
into tables (see test page).BODY
is set at a non-standard size (eg
font-size:90%;
) to scale down unsightly large default text
sizes in browsers, with block elements then set at font-size:1em;
,
then the block elements end up too large. This is particularly vile for
nested lists and div
elements, as can be seen from this page using em
units.
Sizing the elements with percentage units instead of em
s
works fine, as shown in this
test page using percentage units. font-family
style defined in the stylesheet.
monospace
,
which is not correct, but handles most other quoting issues properly.font-family
declarations, if the relevant font at the front
of the list is quoted (which you’re meant to do if the font name has
more than one word in it) and if there is a generic font family specified
at the end (which you are also meant to do) then iCab 2.8x for OS X doesn’t
see any of the font names other than the generic family (see test page).DT
elements) have around 1em
of extra line height above text. If background color set on these elements,
may obscure some text in previous line. Workarounds: set
background
to transparent
, or add margin-top:1em;
to DT
element style.This page was compiled by CodeBitch and hosted by MacEdition, based on analysis of the CSS1 and (some of the) CSS3 Selectors Test Suites provided by the W3C, Eric Meyer’s CSS2 Test pages, CSS2 Test pages provided by Richinstyle, and CodeBitch’s own tests of CSS compatibility, with added information from pages provided by Johannes Koch, Albin.Net, Ian Hickson and David Baron. Some information was initially drawn from other compilations of bug information for Safari, and from the Konqueror documentation, but all such information has been independently verified by CodeBitch.
No warranties are given on the correctness of this page, since this depends both on the correctness of the tests and correctness of my interpretation of the tests. All reasonable efforts have been made to ensure accuracy. Corrections, clarifications and updates for new versions of these browsers will be gratefully appreciated. Thanks are due to Matt McIrvin, the rest of the MacEdition staff, and numerous dedicated web developers with Macs, who have sent comments, diagnoses and screenshots.
Last Modified: 14 April 2003 (9:30PM AEST)