- From: Ian Hickson <ian@hixie.ch>
- Date: Fri, 12 Jul 2002 13:41:55 +0100
- To: Rowland Shaw <Rowland.Shaw@crystaldecisions.com>
- Cc: "'Patrick Andries'" <pandries@iti.qc.ca>, "'www-style@w3.org'" <www-style@w3.org>
Rowland Shaw wrote:
>
> I also happen to agree with Ian Hickson; XML is not really suited to CSS as
> it is today, due to it's non treelike structure.
>
> For the record, I'd refine his example to:
> <rule>
> <selector> <!-- I guess there's nothing to stop you using Xpath queries
> instead -->
> *:test > test:*
> </selector>
> <declaration>
> <property>color</property>
> <value>
> <rgba red="25%" green="100%" blue="0%" alpha="0.5" />
> </value>
> </declaration>
> </rule>
> But I still prefer (if only for it's conciseness):
> *|test > test|* { color: rgba( 25%, 100%, 0%, 0.5); }
That still leaves the selector in its original CSS form, and the four rgba
values still unparsed. It also dropped all the comments, which is a big loss.
Also, this wouldn't easily handle the 'content' property in a consistent manner.
(see the penultimate rule in the stylesheet in my last post [1]).
[1] http://lists.w3.org/Archives/Public/www-style/2002Jul/0027.html
--
Ian Hickson )\._.,--....,'``. fL
"meow" /, _.. \ _\ ;`._ ,.
http://index.hixie.ch/ `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 12 July 2002 08:42:00 UTC