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

Re: CSSImportRule's "media" attribute

From: Philippe Le Hegaret <plh@w3.org>
Date: Wed, 25 Jul 2001 08:02:18 -0400
Message-ID: <3B5EB54A.D2744989@w3.org>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: www-dom@w3.org
Boris Zbarsky wrote:
> 
> I have a question about the DOM Style specification...  CSSImportRule
> (http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSImportRule) has
> a |media| attribute.  It also has a |styleSheet| attribute, and the
> stylesheet pointed to by this attribute has a |media| attribute of it's
> own.
> 
> Now, both attributes are readonly but the corresponding MediaList
> objects have methods that can be used to modify them.  The question I
> have is twofold:
> 
> 1)  If the MediaList corresponding to the import rule is modified, does
>     this automatically modify the MediaList corresponding to the
>     imported stylesheet?

Yes. Tou will also have the same relation between the a media attribute on
the LINK HTML element and its associated styleSheet.

> 2)  If the answer to #1 is yes, what's the expected value (if any) of
> 
>     rule.media == rule.styleSheet.media
> 
>     ?  That is, are the two media lists actually the same object?

They are.

Philippe
Received on Wednesday, 25 July 2001 08:02:19 GMT

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