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

Re: CSS 2: priorities in cascading order

From: Jason White <jasonw@ariel.ucs.unimelb.EDU.AU>
Date: Mon, 22 Dec 1997 12:15:20 +1100 (AEDT)
To: WAI HC Working Group <w3c-wai-hc@w3.org>
Message-ID: <Pine.SUN.3.95.971222120224.14823B-100000@ariel.ucs.unimelb.EDU.AU>
For the sake of clarity, I shall illustrate my proposal with an example.
Given the following user style:

li { color: red ! required }

and an author's style which provides as follows:

ol li.abc { color: blue ! important }

then if there is an ordered list in the document such as:

<ol> <li class="abc"> This is the first and only item in an ordered list.

the above item will be coloured red, despite the author's declaration.
This is a result of the stipulation, set forth in my previous message,
that the "required" key word should give the user's rule priority over all
of the author's rules, regardless of the specificity of the latter.
Furthermore, as this example makes clear, "required" rules have priority
over the author's "important" rules.
Received on Sunday, 21 December 1997 20:15:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:35:01 UTC