Re: CSS 2.1 WD and non-CSS presentational hints

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 UTC