Re: 14.3.2 Specifying external style sheets - error?

I noticed the quote "name the style sheet with the title attribute." 
began with a lower-case n. Did the sentence begin with "You may..."? 
Maybe it was just telling you how to name it if you choose to. "When 
a user selects a named style..." implies that naming styles isn't 
necessary. The first alone will be applied when it doesn't share a 
name--I assume.

---- Begin Original Message ----

From: fantasai <fantasai@escape.com>
Sent: Sat, 14 Apr 2001 20:07:36 -0400
To: www-html@w3.org
Subject: 14.3.2 Specifying external style sheets - error?


http://www.w3.org/TR/html4/present/styles.html#h-14.3

Given this:

<link rel="stylesheet" title="Preferred" type="text/css" href="a.css">
<link rel="stylesheet" title="Preferred" type="text/css" href="b.css">

 "If two or more LINK elements specify a preferred style sheet, 
  the first one takes precedence." [section 14.3.2]

requires that only the a.css be applied. However, both must be 
applied because they are part of the same named group:

 "Authors may group several alternate style sheets (including 
  the author's preferred style sheets) under a single style name.
  When a user selects a named style, the user agent must apply 
  all style sheets with that name." [section 14.3.1]

 "name the style sheet with the title attribute." [section 14.3.2]

resulting in a contradiction.

The intent, I believe, was to state that if two or more
groups of preferred style sheets are specified, the first
one takes precedence.



---- End Original Message ----



Bookmark the HyperMart Small Business Center. All the tools you need to
succeed!
http://www.hypermart.net/center/

Received on Saturday, 14 April 2001 22:02:16 UTC