Skip to content

Commit 122f057

Browse files
committed
[css-values] Clarify relative URL handling for embedded style sheets.
1 parent 66eaac8 commit 122f057

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

css-values/Overview.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,9 @@ <h3 id=urls><span class=secno>3.4. </span> Resource Locators: the ‘<a
797797
rel=biblioentry>[URI]<!--{{!URI}}--></a>) are resolved to full URIs using
798798
a base URI. RFC 3986, section 3, defines the normative algorithm for
799799
this process. For CSS style sheets, the base URI is that of the style
800-
sheet, not that of the source document.
800+
sheet itself, which is not necessarily that of the source document. Style
801+
sheets embedded within a document must use the base URL associated with
802+
their container.
801803

802804
<p>When a <a href="#url-value"><i>&lt;url></i></a> appears in the computed
803805
value of a property, it is resolved to an absolute URL, as described in
@@ -2376,6 +2378,8 @@ <h2 class=no-num id=changes>Changes</h2>
23762378
href="#identifier-value"><var>&lt;custom-ident></var></a>. Require specs
23772379
referencing it to be clear about excluded keywords, because the new rule
23782380
isn't as simple.
2381+
2382+
<li>Clarified relative URL resolution for embedded style sheets.
23792383
</ul>
23802384

23812385
<p>Changes since the <a

css-values/Overview.src.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,11 @@ <h3 id="urls">
460460
the absolute location of a resource, authors should use relative URIs.
461461
Relative URIs (as defined in [[!URI]]) are resolved to full URIs
462462
using a base URI. RFC&nbsp;3986, section&nbsp;3, defines the normative
463-
algorithm for this process. For CSS style sheets, the base URI is that
464-
of the style sheet, not that of the source document.
463+
algorithm for this process.
464+
For CSS style sheets, the base URI is that of the style sheet itself,
465+
which is not necessarily that of the source document.
466+
Style sheets embedded within a document must use
467+
the base URL associated with their container.
465468

466469
<p>When a <i>&lt;url></i> appears in the computed value of a property,
467470
it is resolved to an absolute URL, as described in the preceding
@@ -1852,6 +1855,7 @@ <h2 class="no-num" id="changes">Changes</h2>
18521855
<li>Relaxed unnecessary restrictions on <var>&lt;custom-ident></var>.
18531856
Require specs referencing it to be clear about excluded keywords,
18541857
because the new rule isn't as simple.
1858+
<li>Clarified relative URL resolution for embedded style sheets.
18551859
</ul>
18561860

18571861
<p>Changes since the <a href="http://www.w3.org/TR/2012/CR-css3-values-20120828/">28 August 2012 Candidate Recommendation</a> are:

0 commit comments

Comments
 (0)