Skip to content

Commit c6e1336

Browse files
committed
[css-values-4] Make it clear that all the URL stuff applies to both url functions.
1 parent 588473a commit c6e1336

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

css-values-4/Overview.bs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -822,12 +822,12 @@ Quoted Strings: the <<string>> type</h3>
822822
<h3 id="urls">
823823
Resource Locators: the <<url>> type</h3>
824824

825-
The <<url>> type
825+
The <<url>> type,
826+
written with the <dfn>url()</dfn> and <dfn>src()</dfn> functions,
826827
represents a <l spec=url>[=/URL=]</l>,
827828
which is a pointer to a resource.
828829

829-
Typically, a <<url>> is written with the <dfn>url()</dfn>
830-
or <dfn>src()</dfn> <a>functional notations</a>:
830+
The syntax of <<url>> is:
831831

832832
<pre class="prod">
833833
<dfn id="url-value">&lt;url></dfn> = url( <<string>> <<url-modifier>>* ) |
@@ -951,11 +951,11 @@ Fragment URLs</h5>
951951
To work around some common eccentricities in browser URL handling,
952952
CSS has special behavior for fragment-only urls.
953953

954-
If a ''url()''s value starts with a U+0023 NUMBER SIGN (<code>#</code>) character,
954+
If a <<url>>'s value starts with a U+0023 NUMBER SIGN (<code>#</code>) character,
955955
parse it as per normal for URLs,
956-
but additionally set the <dfn export for="url()">local url flag</dfn> of the ''url()''.
956+
but additionally set the <dfn export for="url()">local url flag</dfn> of the <<url>>.
957957

958-
When matching a ''url()'' with the <a>local url flag</a> set,
958+
When matching a <<url>> with the <a>local url flag</a> set,
959959
ignore everything but the URL's fragment,
960960
and resolve that fragment against the [=node tree=]
961961
of the stylesheet's [=CSSStyleSheet/owner node=].
@@ -1007,12 +1007,13 @@ Fragment URLs</h5>
10071007
<h4 id="url-empty">
10081008
Empty URLs</h4>
10091009

1010-
If the value of the ''url()'' is the empty string
1010+
If the value of the <<url>> is the empty string
10111011
(like ''url("")'' or ''url()''),
10121012
the url must resolve to an invalid resource
10131013
(similar to what the url ''about:invalid'' does).
10141014

1015-
Its computed value is ''url("")'',
1015+
Its computed value is ''url("")'' or ''src("")'',
1016+
whichever was specified,
10161017
and it must serialize as such.
10171018

10181019
<wpt>
@@ -1030,7 +1031,7 @@ Empty URLs</h4>
10301031
<h4 id='url-modifiers'>
10311032
URL Modifiers</h4>
10321033

1033-
The ''url()'' function supports specifying additional <dfn>&lt;url-modifier></dfn>s,
1034+
<<url>>s support specifying additional <dfn>&lt;url-modifier></dfn>s,
10341035
which change the meaning or the interpretation of the URL somehow.
10351036
A <<url-modifier>> is either an <<ident>> or a <a>functional notation</a>.
10361037

0 commit comments

Comments
 (0)