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. PhilippeReceived on Wednesday, 25 July 2001 08:02:19 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:24:53 GMT