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

Re: CSS 2.1 WD and non-CSS presentational hints

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 31 Aug 2002 18:01:39 +0000 (GMT)
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <Pine.LNX.4.21.0208311753210.2213-100000@dhalsim.dreamhost.com>

On Thu, 29 Aug 2002, Coises wrote:
> 
> CSS is not concerned with the "semantics" of the document language: only
> its form.  It's seems to me illogical that CSS would treat <B> and <STRONG>
> differently.  CSS doesn't care that <B> is presentational and <STRONG> is
> purposeful.  On the other hand, <CENTER> and <DIV ALIGN="CENTER"> ---
> though *HTML* may consider them equivalent --- appear completely different
> to CSS.

No they don't.

   B { font-weight: bold; }
   STRONG { font-weight: bold; }

   CENTER { text-align: center; }
   DIV[ALIGN=CENTER] { text-align: center; }

They seem the same to me.

Since this is all UA stylesheet stuff, we can even posit UA extensions to
CSS, such as:

   FONT[color] { color: -ua-attr(color, color); }
   FONT[size] { font-size: -ua-attr(size, html-font-size); }

Why is this any different the B and CENTER rules above?

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 31 August 2002 14:01:40 GMT

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