Skip to content

Commit 5f598ec

Browse files
committed
[css-values] Move empty URL section out of the way of normal readers. Add to changes list. Update DoC
1 parent e051892 commit 5f598ec

2 files changed

Lines changed: 31 additions & 13 deletions

File tree

css-values/Overview.bs

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -539,19 +539,6 @@ Resource Locators: the <<url>> type</h3>
539539
(If written as a normal function containing a string, ordinary string escaping rules apply;
540540
only newlines and the character used to quote the string need to be escaped.)
541541

542-
If the value of the ''url()'' is the empty string
543-
(like ''url("")'' or ''url()''),
544-
the url must resolve to an invalid resource
545-
(similar to what the url ''about:invalid'' does).
546-
547-
Note: This matches the behavior of empty urls for embedded resources elsewhere in the web platform,
548-
and avoids excess traffic re-requesting the stylesheet or host document
549-
due to editting mistakes leaving the ''url()'' value empty,
550-
which are almost certain to be invalid resources for whatever the ''url()'' shows up in.
551-
Linking on the web platform <em>does</em> allow empty urls,
552-
so if/when CSS gains some functionality to control hyperlinks,
553-
this restriction can be relaxed in those contexts.
554-
555542
<h4 id="relative-urls">
556543
Relative URLs</h4>
557544

@@ -631,6 +618,22 @@ Fragment URLs</h4>
631618
regardless of what its URL is.
632619
</details>
633620

621+
<h4 id="url-empty">
622+
Empty URLs</h4>
623+
624+
If the value of the ''url()'' is the empty string
625+
(like ''url("")'' or ''url()''),
626+
the url must resolve to an invalid resource
627+
(similar to what the url ''about:invalid'' does).
628+
629+
Note: This matches the behavior of empty urls for embedded resources elsewhere in the web platform,
630+
and avoids excess traffic re-requesting the stylesheet or host document
631+
due to editting mistakes leaving the ''url()'' value empty,
632+
which are almost certain to be invalid resources for whatever the ''url()'' shows up in.
633+
Linking on the web platform <em>does</em> allow empty urls,
634+
so if/when CSS gains some functionality to control hyperlinks,
635+
this restriction can be relaxed in those contexts.
636+
634637
<h4 id='url-modifiers'>
635638
URL Modifiers</h4>
636639

@@ -2183,6 +2186,8 @@ Changes</h2>
21832186
<ul>
21842187
<li>Allow zero angles to be represented as ''0''.
21852188
(Change due to Web-compatibility constraints in transform and gradient syntaxes.)
2189+
<li>Defined an empty <<url>> resolves to an invalid resource.
2190+
21862191
</ul>
21872192

21882193
Changes since the <a href="https://www.w3.org/TR/2013/CR-css3-values-20130730/">30 July 2013 Candidate Recommendation</a> are:

css-values/issues-cr-2015.bsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,16 @@ Response: https://lists.w3.org/Archives/Public/www-style/2016Mar/0178.html
156156
Closed: Accepted
157157
Resolved:
158158
----
159+
Issue 19.
160+
Summary: pushState() breaks relative URL resolution
161+
From: Tab Atkins
162+
Comment: https://lists.w3.org/Archives/Public/www-style/2016Mar/0298.html
163+
Open: Edits need review
164+
Resolved: https://lists.w3.org/Archives/Public/www-style/2016May/0209.html
165+
----
166+
Issue 20.
167+
Summary: Define case-sensitivity of attr()
168+
From: Simon Pieters
169+
Comment: https://lists.w3.org/Archives/Public/www-style/2016Apr/0067.html
170+
Open
171+
----

0 commit comments

Comments
 (0)