[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK: Re: Fw: programlisting
On Fri, Aug 16, 2002 at 03:00:30PM -0400, Norman Walsh wrote: > / David Cramer <dcramer@broadjump.com> was heard to say: > | The test looks fine on IE 5.50, SP2. > | > | David > | > |> So far, we have positive results from IE 5.0 and 6.0. > > And a few others, I thought, as I read through the thread. > > Do we have consensus that > > <pre class="programlisting myrole"> > > is a good idea (actually, the general principle that ' rolevalue' can > be tacked onto the class attribute)? > > Since several of you have clearly been reading the CSS spec, how is > the following situation disambiguated: > > .programlisting { background-color: red; } > .myrole { background-color: blue; } > > by order of rules in CSS? Yes. For declarations with the same weight, origin and specificity, then the order is used, and the latter wins. At least, that's what the spec says (both CSS1 and 2). I think adding the role to the class should be turned on by a parameter. Some people won't want their roles showing up in their HTML. And there may be cases where it messes up existing CSS stylesheets. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 Caldera International, Inc. fax: (831) 429-1887 email: bobs@caldera.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC