W3C home > Mailing lists > Public > www-style@w3.org > August 2002

Re: CSS 2.1 WD and non-CSS presentational hints

From: Coises <Randy@Coises.com>
Date: Tue, 13 Aug 2002 16:37:58 -0700
To: www-style@w3.org
Message-ID: <uc5jluk2sgk1gcbvtjc9hpcoia66dvc5h7@4ax.com>

[Tue, 13 Aug 2002 06:41:41 -0400 (EDT)] Lars Knoll:
>> ||  If the user agent chooses to honor presentational hints from other
>> ||  sources than style sheets, these hints must be given the same weight
>> ||  as the user agent's default style sheet. This rule is intended for
>> ||  presentational hints in HTML.  Note that non-CSS presentational hints
>> ||  had a higher weight in CSS2. 
>
>Does that mean one should apply them directly after the default style sheet? 
>The "same weight" is a bit unclear, since it doesn't tell you if you should 
>apply then before or after the default style (since at the same time is not 
>really possible ;-).

It doesn't matter.  As presentational hints from other sources than style
sheets (at least in HTML and its descendants) are attributes which apply to
a specific element, they would have to be translated into STYLE attributes,
or the equivalent of rules with an ID selector.  ID selectors would make no
sense at all in a user agent default style sheet; so the presentational
hints as translated would always be of higher specificity than anything in
the user agent default style sheet, and thus would take precedence over UA
default style sheet rules regardless of where they are (virtually) placed.


>But I think most browsers currently allowing user style sheets behave 
>differently (correct me if I'm wrong with this assumption) and I thought one 
>goal of CSS 2.1 was also to approach common practice.

My assessment of IE 5 and 6 for Windows is that they implement this part of
CSS 2 (see <http://www.w3.org/TR/REC-CSS2/cascade.html#q12>) as written.
-- 
Randall Joseph Fellmy aka Randy@Coises.com
Received on Tuesday, 13 August 2002 19:38:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:15 GMT