W3C home > Mailing lists > Public > www-style@w3.org > December 2012

Re: [css3-cascade] Stylesheets imported in multiple places

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 31 Dec 2012 14:09:07 -0800
Message-ID: <50E20D03.1090809@inkedblade.net>
To: "www-style@w3.org" <www-style@w3.org>
On 12/19/2012 05:09 AM, Simon Sapin wrote:
> CSS 2.1 has a sentence that I can’t find in css3-cascade but should be there, probably in section 2:
>> When the same style sheet is imported or linked to a document in
>> multiple places, user agents must process (or act as though they do)
>> each link as though the link were to a separate style sheet.
> In my understanding, this also applies to CSSOM:
> * Given two CSSImportRule objects with the same href, their styleSheet attributes are not the same object.
> * Changing one (eg. through .insertRule()) does not affect the other.
> Is this correct? Either way it should be specified somewhere, but it’s not AFAICT.

It's specified in CSS2.1. I've copied over the paragraph.
   http://www.w3.org/TR/CSS21/cascade.html#at-import (last paragraph)

Received on Monday, 31 December 2012 22:09:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:24 UTC