W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2001

RE: !important & User Styles

From: Jon Hanna <jon@spinsol.com>
Date: Wed, 11 Apr 2001 11:01:20 +0100
To: <w3c-wai-ig@w3.org>
Hash: SHA1

> Hi Jon,
> I've also experienced inconsistencies in implementation of user 
> styles when 
> class attributes are used in the author's style Sheet, as these are
>  unlikely to be recognised by the user's style sheet.
> Does anyone know a way around this?

The problem is that since styles applied to classes over-ride styles
applied to elements they will be the one shown.
For authors this means that class styles should ideally not over-ride
styles likely to affect accessibility, and if font-sizes are used
they should be as percentages (so they will be at least relative to
the user-style if there is one, e.g. if your author style for <p> has
a font-size of 10pt and for .small is 80% then it should still be
readable by someone who over-rides <p> to have a font size of 18pt).

I've thought for some time now (and maybe this is already in the
Spec, I haven't read it in a while) that stylesheets should be able
to set hard rules that override everything, e.g. if you could set a
style on the <body> which meant that nothing in it could have a
font-size of less than 12pt no matter what it would make user-styles
a lot more useful.

Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>

Received on Wednesday, 11 April 2001 06:00:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:12 UTC