W3C home > Mailing lists > Public > www-style@w3.org > July 2011

Re: [cssom] Question about multiple key pair values

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Sat, 30 Jul 2011 06:04:41 +0200
Message-ID: <4E3382D9.4070900@disruptive-innovations.com>
To: www-style@w3.org
Le 29/07/11 21:28, François REMY a écrit :

> A small question : how will the "ideal" vNext CSS Object Model handle
> the case where a property is defined two or more time in the same rule?
> This happens often when it's needed to maintain compatibility with
> browsers which support a property but not all its possible values.
> Dealing with this case seems not so easy at first glance and, while
> support for it seems needed for editing software, I'm wondering whether
> general WebPages would benefit from a too complete OM or if the memory
> overhead would be prohibitive. I'm also wondering if it wouldn't be
> better to have specific programs that need granular control over
> stylesheets build their own modules for it.

Even for editing software, that's difficult to handle, please trust me
on that. FWIW, BlueGriffon does what you suggest above. It has its own
CSS parser, serializer and OM (not _the_ CSS OM). But dealing with
multiple valid declarations for the same property - because that's what
we're discussing here - is of a complexity magnitude I'm not sure it's

Note: I needed my own parser for unknownrules and comments.

Received on Saturday, 30 July 2011 04:05:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:48 UTC