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

Re: New WD: CSS3 selectors

From: Frank Boumphrey <bckman@ix.netcom.com>
Date: Wed, 4 Aug 1999 15:29:59 -0400
Message-ID: <024901bedeaf$c1dbc080$8dacdccf@bckman>
To: <jelks@jelks.nu>, <www-style@w3.org>
But is there any
> real reason for CSS *excluding* recognition of class in XML, in other
words --
> providing automatic recognition of class (or CLASS) regardless of the
semantics
> of the markup language in question?

My feeling was that in XML the element WAS the class!

However that having been said, there is nothing to stop implementors using a
name spacem,i.e.

<greeting html:class="greet">Hello CSS3</greeting>

Frank
Frank Boumphrey
Author:
VP HTML Writers Guild
 Professional Style sheets from Wrox press
XML applications from Wrox press
www.hypermedic.com

----- Original Message -----
From: Jelks Cabaniss <jelks@jelks.nu>
To: <www-style@w3.org>
Sent: Wednesday, August 04, 1999 3:06 PM
Subject: RE: New WD: CSS3 selectors


> > A new working draft was just published:
> >
> >     CSS3 module: W3C selectors
> >     http://www.w3.org/TR/1999/WD-CSS3-selectors-19990803
>
> It's good to see this.
>
> Question: there's a caveat under the example "E.warning" that says "HTML
only".
> XML, unlike with IDs, has no "built-in" notation of *class*.  But is there
any
> real reason for CSS *excluding* recognition of class in XML, in other
words --
> providing automatic recognition of class (or CLASS) regardless of the
semantics
> of the markup language in question?
>
> Reason: dot notation for class as used in HTML+CSS is so convenient, that
I
> imagine it will be highly requested by authors of XML-based documents and
> implemented by the browser manufacturers, regardless of its official
status:
>
> message.alert
>
> display: block;
> color: red;
> font-size: 4em;
> font-weight: bold;
> text-decoration: blink;
> }
>
> ...
>
> <para>Bin Laden's message of the day:
>   <message class="alert">Vacate premises. Incoming US missiles!</message>
> <para>
>
> Of course you can do the same with
>
> message[class="alert"]
>
> or using other attributes. But would it do *harm* to have a CSS '.attval'
> represent a shorthand of '[class="attval"]' -- even if it's not in
HTML/XHTML,
> where CLASS has a certain semantic?
>
>
> /Jelks
>
>
>
Received on Wednesday, 4 August 1999 15:39:19 GMT

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