Skip to content

Commit

Permalink
[import] Trying to clarify cascading order explanation.
Browse files Browse the repository at this point in the history
  • Loading branch information
omo committed Feb 20, 2014
1 parent 7ff016a commit 600f7bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/imports/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,9 @@ <h2 id="style-imports">Style processing with Imports</h2>

<div class="fixme">
<p>The contents of the <code><a href="http://www.whatwg.org/specs/web-apps/current-work/#the-style-element">style</a></code> elements and
the external resources of the <code><a href="http://www.whatwg.org/specs/web-apps/current-work/#the-link-element">link</a></code> elements <strong>must</strong> be considered as input sources of the <a href="http://www.w3.org/TR/CSS21/intro.html#processing-model">style processing model</a> of the <a href="#dfn-master-document">master document</a>.</p>
the external resources of the <code><a href="http://www.whatwg.org/specs/web-apps/current-work/#the-link-element">link</a></code> elements in <a href="#dfn-import">imports</a> <strong>must</strong> be considered as input sources of the <a href="http://www.w3.org/TR/CSS21/intro.html#processing-model">style processing model</a> of the <a href="#dfn-master-document">master document</a>.</p>

<p>Between declarations from different documents, the document order in terms of <a href="http://www.w3.org/TR/css3-cascade/#cascade-order">order of appearance</a> is defined based on the <code><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-link-element">link</a></code> element of one of the <a href="#dfn-import-referrer-ancestor">import referrer ancestors</a> that is in the same document of comparing declaration.</p>
<p>Between declarations from different documents, the document order in terms of <a href="http://www.w3.org/TR/css3-cascade/#cascade-order">order of appearance</a> is defined based on the document order of the <code><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-link-element">link</a></code> elements of their <a href="#dfn-import-referrer-ancestor">import referrer ancestors</a> which are in the same document. If thre are more than one of such documents, the comparison result in the first document, in the document order, wins.</p>

<p>See <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=24616">Bug 24616.</a></p>
</div>
Expand Down

0 comments on commit 600f7bf

Please sign in to comment.