File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -539,6 +539,19 @@ Resource Locators: the <<url>> type</h3>
539
539
(If written as a normal function containing a string, ordinary string escaping rules apply;
540
540
only newlines and the character used to quote the string need to be escaped.)
541
541
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
+
542
555
<h4 id="relative-urls">
543
556
Relative URLs</h4>
544
557
You can’t perform that action at this time.
0 commit comments