Skip to content

Commit 3d50180

Browse files
author
Simon Pieters
committed
[cssom] Make style sheets from xml-stylesheet and Link: block scripts. https://www.w3.org/Bugs/Public/show_bug.cgi?id=22452
1 parent 73f3527 commit 3d50180

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

cssom/Overview.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<h1>CSS Object Model (CSSOM)</h1>
1717

1818

19-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 26 August 2013</h2>
19+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 27 August 2013</h2>
2020

2121
<dl>
2222

@@ -90,7 +90,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2>
9090
can be found in the
9191
<a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em>
9292

93-
<p class="dontpublish">This is the 26 August 2013 Editor's Draft of CSSOM. Please send comments to
93+
<p class="dontpublish">This is the 27 August 2013 Editor's Draft of CSSOM. Please send comments to
9494
<a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a>
9595
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
9696
with <samp>[cssom]</samp> at the start of the subject line.
@@ -1617,6 +1617,13 @@ <h4 id="requirements-on-user-agents-implementing-the-xml-stylesheet-processing-i
16171617
</li>
16181618
</ol>
16191619

1620+
<p>A style sheet referenced by an <a class="external" data-anolis-spec="xmlss" href="http://www.w3.org/TR/xml-stylesheet/#dt-xml-stylesheet">xml-stylesheet processing instruction</a> using the rules in this section, in the context of
1621+
the <code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#document">Document</a></code> of an <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-xhtml-syntax.html#xml-parser">XML parser</a> is said to be
1622+
<a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#a-style-sheet-that-is-blocking-scripts">a style sheet that is blocking scripts</a> if the <code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#processinginstruction">ProcessingInstruction</a></code>
1623+
<a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-node" title="concept-node">node</a> was created by that <code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#document">Document</a></code>'s parser, and the style sheet was
1624+
enabled when the node was created by the parser, and the <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#style-sheet-ready">style sheet ready</a> flag is not yet set, and, the last time the
1625+
<a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#event-loop">event loop</a> reached step 1, the node was in that Document, and the user agent hasn't given up on that particular style sheet
1626+
yet. A user agent may give up on such a style sheet at any time.
16201627

16211628
<h4 id="requirements-on-user-agents-implementing-the-http-link-header"><span class="secno">6.3.5 </span>Requirements on User Agents Implementing the HTTP
16221629
<code title="">Link</code> Header</h4>
@@ -1693,6 +1700,9 @@ <h4 id="requirements-on-user-agents-implementing-the-http-link-header"><span cla
16931700
</li>
16941701
</ol>
16951702

1703+
<p>A style sheet referenced by a HTTP <code title="">Link</code> header using the rules in this section is said to be <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#a-style-sheet-that-is-blocking-scripts">a style sheet
1704+
that is blocking scripts</a> if the style sheet was enabled when created, and the <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#style-sheet-ready">style sheet ready</a> flag is not yet set,
1705+
and the user agent hasn't given up on that particular style sheet yet. A user agent may give up on such a style sheet at any time.
16961706

16971707
<h3 id="css-rules"><span class="secno">6.4 </span>CSS Rules</h3>
16981708

cssom/Overview.src.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,6 +1538,13 @@ <h4>Requirements on User Agents Implementing the xml-stylesheet processing instr
15381538
</li>
15391539
</ol>
15401540

1541+
<p>A style sheet referenced by an <span data-anolis-spec=xmlss>xml-stylesheet processing instruction</span> using the rules in this section, in the context of
1542+
the <code data-anolis-spec=dom>Document</code> of an <span data-anolis-spec=html>XML parser</span> is said to be
1543+
<span data-anolis-spec=html>a style sheet that is blocking scripts</span> if the <code data-anolis-spec=dom>ProcessingInstruction</code>
1544+
<span data-anolis-spec=dom title=concept-node>node</span> was created by that <code data-anolis-spec=dom>Document</code>'s parser, and the style sheet was
1545+
enabled when the node was created by the parser, and the <span data-anolis-spec=html>style sheet ready</span> flag is not yet set, and, the last time the
1546+
<span data-anolis-spec=html>event loop</span> reached step 1, the node was in that Document, and the user agent hasn't given up on that particular style sheet
1547+
yet. A user agent may give up on such a style sheet at any time.
15411548

15421549
<h4>Requirements on User Agents Implementing the HTTP
15431550
<code title>Link</code> Header</h4>
@@ -1614,6 +1621,9 @@ <h4>Requirements on User Agents Implementing the HTTP
16141621
</li>
16151622
</ol>
16161623

1624+
<p>A style sheet referenced by a HTTP <code title>Link</code> header using the rules in this section is said to be <span data-anolis-spec=html>a style sheet
1625+
that is blocking scripts</span> if the style sheet was enabled when created, and the <span data-anolis-spec=html>style sheet ready</span> flag is not yet set,
1626+
and the user agent hasn't given up on that particular style sheet yet. A user agent may give up on such a style sheet at any time.
16171627

16181628
<h3>CSS Rules</h3>
16191629

0 commit comments

Comments
 (0)