Skip to content

Commit 361dbcb

Browse files
committed
The computed value of image() converts relative urls into absolute.
1 parent 7318dae commit 361dbcb

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

css3-images/Overview.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616

1717
<h1>CSS Image Values and Replaced Content Module Level 3</h1>
1818

19-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 11 February
19+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 16 February
2020
2012</h2>
2121

2222
<dl>
2323
<dt>This Version:
2424

2525
<dd><a
2626
href="http://dev.w3.org/csswg/css3-images/">http://dev.w3.org/csswg/css3-images/</a>
27-
<!-- <dd><a href="http://www.w3.org/TR/2012/ED-css3-images-20120211/">http://www.w3.org/TR/2012/WD-css3-images-20120211/</a>-->
27+
<!-- <dd><a href="http://www.w3.org/TR/2012/ED-css3-images-20120216/">http://www.w3.org/TR/2012/WD-css3-images-20120216/</a>-->
2828

2929

3030
<dt>Latest Version:
@@ -504,8 +504,10 @@ <h3 id=image-notation><span class=secno>3.2. </span> Image Fallbacks and
504504
<dfn
505505
id=ltimage-decl>&lt;image-decl></dfn> = &lt;string> [ ltr | rtl ]?</pre>
506506

507-
<p>Each <code>&lt;string></code> must represent a <a
508-
href="http://dev.w3.org/csswg/css3-values/#urls">URL</a>.
507+
<p>Each <code>&lt;string></code> represents a <a
508+
href="http://dev.w3.org/csswg/css3-values/#urls">URL</a>. The computed
509+
value of an <a href="#ltimage-list"><i>&lt;image-list></i></a> is the same
510+
as specified, except with all relative URLs converted into absolute URLs.
509511

510512
<p>Multiple arguments can be given separated by commas, in which case the
511513
function represents the first &lt;string> representing an image that the

css3-images/Overview.src.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ <h3 id="image-notation">
227227
<pre class='prod'><dfn>&lt;image-list></dfn> = image( [ &lt;image-decl> , ]* [ &lt;image-decl> | &lt;color> ] )
228228
<dfn>&lt;image-decl></dfn> = &lt;string> [ ltr | rtl ]?</pre>
229229

230-
<p>Each <code>&lt;string></code> must represent a <a href="http://dev.w3.org/csswg/css3-values/#urls">URL</a>.</p>
230+
<p>Each <code>&lt;string></code> represents a <a href="http://dev.w3.org/csswg/css3-values/#urls">URL</a>. The computed value of an <i>&lt;image-list></i> is the same as specified, except with all relative URLs converted into absolute URLs.</p>
231231

232232
<p>Multiple arguments can be given separated by commas, in which case the function represents the first &lt;string> representing an image that the browser can successfully load and display. The final argument can specify a &lt;color> to serve as an ultimate fallback; this can be used, e.g. for 'background-image', to ensure adequate contrast if none of the preceding &lt;image-decl>s can be used. If the final argument is a &lt;color>, it represents a solid-color image of the given color with no <i>intrinsic dimensions</i>.
233233

0 commit comments

Comments
 (0)