Skip to content

Commit 3ef61d6

Browse files
committed
[css-cascade] Clarify that the same stylesheet linked/imported in multiple places is still allowed to only be fetched once.
1 parent c9aae5a commit 3ef61d6

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

css-cascade/Overview.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ <h2 id=at-import><span class=secno>2. </span> Importing style sheets: the
326326
multiple places, user agents must process (or act as though they do) each
327327
link as though the link were to a separate style sheet.
328328

329+
<p class=note> Note: This does not place any requirements on resource
330+
fetching, only how the stylesheet is reflected in the CSSOM and used in
331+
specs such as this one. Assuming appropriate caching, it is perfectly
332+
appropriate for a UA to fetch a stylesheet only once, even though it's
333+
linked or imported multiple times.
334+
329335
<p> The <a href="#origin"><i>origin</i></a> of an imported stylesheet is
330336
the same as the <a href="#origin"><i>origin</i></a> of the stylesheet that
331337
imported it.

css-cascade/Overview.src.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ <h2 id="at-import">
145145
user agents must process (or act as though they do) each link
146146
as though the link were to a separate style sheet.
147147

148+
<p class='note'>
149+
Note: This does not place any requirements on resource fetching,
150+
only how the stylesheet is reflected in the CSSOM and used in specs such as this one.
151+
Assuming appropriate caching,
152+
it is perfectly appropriate for a UA to fetch a stylesheet only once,
153+
even though it's linked or imported multiple times.
154+
148155
<p>
149156
The <i>origin</i> of an imported stylesheet is the same as the <i>origin</i> of the stylesheet that imported it.
150157

0 commit comments

Comments
 (0)