Skip to content

Commit 2b9ffaf

Browse files
committed
[css-values-4] Rename fetch() to src(), per WG resolution. Closes w3c#541.
1 parent d6bb291 commit 2b9ffaf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

css-values-4/Overview.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -712,11 +712,11 @@ Resource Locators: the <<url>> type</h3>
712712
which is a pointer to a resource.
713713

714714
Typically, a <<url>> is written with the <dfn>url()</dfn>
715-
or <dfn>fetch()</dfn> <a>functional notations</a>:
715+
or <dfn>src()</dfn> <a>functional notations</a>:
716716

717717
<pre class="prod">
718718
<dfn id="url-value">&lt;url></dfn> = url( <<string>> <<url-modifier>>* ) |
719-
fetch( <<string>> <<url-modifier>>* )
719+
src( <<string>> <<url-modifier>>* )
720720
</pre>
721721

722722
<div class="example">
@@ -731,7 +731,7 @@ Resource Locators: the <<url>> type</h3>
731731
in which case it is <a lt="consume a url token" spec=css-syntax-3>specially-parsed</a>
732732
as a <<url-token>> [[!CSS-SYNTAX-3]].
733733
Because of this special parsing, ''url()'' is only able to specify its URL literally;
734-
''fetch()'' lacks this special parsing rule,
734+
''src()'' lacks this special parsing rule,
735735
and so its URL can be provided by functions,
736736
such as ''var()''.
737737

@@ -746,9 +746,9 @@ Resource Locators: the <<url>> type</h3>
746746
And these have the same meaning as well:
747747

748748
<pre>
749-
background: fetch("http://www.example.com/pinkish.gif");
749+
background: src("http://www.example.com/pinkish.gif");
750750
--foo: "http://www.example.com/pinkish.gif";
751-
background: fetch(var(--foo));
751+
background: src(var(--foo));
752752
</pre>
753753

754754
But this does <em>not</em> work:

0 commit comments

Comments
 (0)