Re: SVGColorProfileRule creation

Blaine,
You can create an SVGColorProfileRule by invoking the insertRule() method
on the CSSStyleSheet interface and pass it a value of COLOR_PROFILE_RULE =
7. This assumes that the implementation knows about the SVG DOM and
supports CSS.

The CSSStyleSheet interface can be bootstrapped from the DocumentCSS
interface, which is on the SVGSVGElement.

Note that DOM2 explicitly says that you cannot create new document style
sheets via the DOM. See
http://www.w3.org/TR/DOM-Level-2/css.html#CSS-StyleSheetCreation

Jon

At 01:51 PM 8/16/00 -0700, Blaine Brodie wrote:
>How is it possible to create a SVGColorProfileRule using the current DOM
>specification?  Is there supposed to be a interface that inherits from 
>DOMImplementationCSS?  Maybe named SVGDOMImplementationCSS??
>i.e.
>	interface SVGDOMImplementaionCSS: DOMImplementationCSS 
>	{}
>
>Thanks for the clarification.
>---
>Blaine
> 

Received on Wednesday, 16 August 2000 20:09:25 UTC