W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2001

Re: what is the CSSValue.CSS_CUSTOM type for?

From: Philippe Le Hegaret <plh@w3.org>
Date: Tue, 21 Aug 2001 17:08:11 -0400
Message-ID: <3B82CDBB.49728A98@w3.org>
To: David Flanagan <david@oreilly.com>
Cc: www-dom@w3.org
David Flanagan wrote:
> 
> The CSSValue interface defines a constants CSS_CUSTOM, which the spec
> describes as "The value is a custom value".  Unfortunately, I can't any
> mention of "custom values" in the index of the DOM CSS spec, or of the
> CSS2 spec itself.

This is an extension mechanism for the CSS OM. If a CSS OM extension wants
to provide its own methods for a CssValue, the type of the CssValue is
CSS_CUSTOM.

> Can someone tell me what this means and give an example of when it might
> be used?  If I have a CSSValue object that represents a custom value,
> can I do anything with it other than query its cssText property?

You'll find an example in the SVG spec, section B.6.4:
http://www.w3.org/TR/SVG/svgdom.html#ExtendedInterfaces

Philippe
Received on Tuesday, 21 August 2001 17:08:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:49 GMT