W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > October to December 1997

Re: Style sheets for access

From: Chris Maden <crism@ora.com>
Date: Thu, 4 Dec 1997 19:54:05 -0500
Message-Id: <199712050054.TAA21349@geode.ora.com>
To: w3c-wai-ig@w3.org
[Charles McCathieNevile]
> It seems that a solution may be to reexamine the CSS rules. If these
> allowed greater weight for reader's rules than those of the author,
> and provided a mechanism where a reader could make general
> declarations but artificially raise their specificity, the problem
> may disappear.
> 
> As an example, if I could declare, in my reader screen styles that
> H1 should be color:purple size:massive, and that this declaration
> was to be regarded as having the specificity of an H1 with a
> particular id and class attribute, it seems that the problem would
> go away. I have ignored the problem of author/reader precedence for
> the example. But that should be easily soluble.

Indeed, it already has been.  A rule can be declared as !important,
meaning that it takes precedence over everything else, except more
specific rules also marked !important.  See 7.1.1 of CSS2.

-Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>
Received on Thursday, 4 December 1997 19:49:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:13:38 GMT