- From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 20 May 2011 22:42:24 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-images In directory hutz:/tmp/cvs-serv22258 Modified Files: Overview.html Overview.src.html Log Message: Dropped url() from image(), and dropped all but <color> as final fallback. Index: Overview.html =================================================================== RCS file: /sources/public/csswg/css3-images/Overview.html,v retrieving revision 1.94 retrieving revision 1.95 diff -u -d -r1.94 -r1.95 --- Overview.html 18 May 2011 21:58:03 -0000 1.94 +++ Overview.html 20 May 2011 22:42:22 -0000 1.95 @@ -4,10 +4,15 @@ <head><meta content="text/html; charset=utf-8" http-equiv=Content-Type> <title>CSS Image Values and Replaced Content Module Level 3</title> - <link href=default.css rel=stylesheet type="text/css"> + <link href="http://dev.w3.org/csswg/default.css" rel=stylesheet + type="text/css"> <link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel=stylesheet type="text/css"> + <style type="text/css"> + p { text-indent: 0 !important; margin: .5em 0; } + </style> + <body> <div class=head> <!--begin-logo--> <p><a href="http://www.w3.org/"><img alt=W3C height=48 @@ -15,7 +20,7 @@ <h1>CSS Image Values and Replaced Content Module Level 3</h1> - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 18 May 2011</h2> + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 20 May 2011</h2> <dl> <dt>Latest Version: @@ -428,20 +433,15 @@ <pre class=prod><dfn id=ltimage-list><image-list></dfn> = - image( [ <image-decl> , ]* [ <image-decl> | <element-reference> | <gradient> | <color> ] )</pre> + image( [ <image-decl> , ]* [ <image-decl> | <color> ] )</pre> <p>where <image-decl> is given by: <pre class=prod><dfn id=ltimage-decl><image-decl></dfn> = - [ <string> | <url> ] [ snap? && <resolution> ]? && [ ltr | rtl ]?</pre> - - <p class=issue>Is there a point to allowing ‘<code - class=css>url()</code>’? + <string> [ [ snap? && <resolution> ] || [ ltr | rtl ] ]</pre> - <p>Each <a href="#ltimage-decl"><i><image-decl></i></a> represents an - external image. If a <string> is provided, it represents the same image - that it would if the the string were given to the ‘<code - class=css>url()</code>’ function. + <p>Each <a href="#ltimage-decl"><i><image-decl></i></a> represents the + external image referenced by the URI given as the <string> argument. <p>If a <resolution> is given, the image must be rendered at that resolution. <span class=note>Recall that the default resolution of images @@ -464,13 +464,12 @@ <p>Multiple arguments can be given separated by commas, in which case the function represents the first <image-decl> representing an image that - the browser can successfully load and display. The final argument can be a - <color>, <a href="#gradients"><gradient></a>, or <a - href="#element-reference"><element-reference></a>, which serves as the - ultimate fallback if none of the preceding <image-decl>s can be used. - If the final argument is a <color>, it represents a solid-color image - of the given color with no <a href="#intrinsic-dimensions"><i>intrinsic - dimensions</i></a>. + the browser can successfully load and display. The final argument may be a + <color> which serves as an ultimate fallback if none of the preceding + <image-decl>s can be used, to ensure that any text or images placed on + top of the image are still easily readable. If the final argument is a + <color>, it represents a solid-color image of the given color with no + <a href="#intrinsic-dimensions"><i>intrinsic dimensions</i></a>. <div class=example> <p>The rule below would tell the UA to load ‘<code Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/css3-images/Overview.src.html,v retrieving revision 1.98 retrieving revision 1.99 diff -u -d -r1.98 -r1.99 --- Overview.src.html 18 May 2011 21:58:03 -0000 1.98 +++ Overview.src.html 20 May 2011 22:42:22 -0000 1.99 @@ -3,8 +3,11 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>CSS Image Values and Replaced Content Module Level 3</title> - <link rel="stylesheet" type="text/css" href="default.css"> + <link rel="stylesheet" type="text/css" href="http://dev.w3.org/csswg/default.css"> <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-ED"> + <style type=text/css> + p { text-indent: 0 !important; margin: .5em 0; } + </style> </head> <body> @@ -229,18 +232,15 @@ <p>The ''image()'' notation is defined as: <pre class='prod'><dfn><image-list></dfn> = - image( [ <image-decl> , ]* [ <image-decl> | <element-reference> | <gradient> | <color> ] )</pre> + image( [ <image-decl> , ]* [ <image-decl> | <color> ] )</pre> <p>where <image-decl> is given by:</p> <pre class='prod'><dfn><image-decl></dfn> = - [ <string> | <url> ] [ snap? && <resolution> ]? && [ ltr | rtl ]?</pre> - - <p class="issue">Is there a point to allowing ''url()''? + <string> [ [ snap? && <resolution> ] || [ ltr | rtl ] ]</pre> - <p>Each <i><image-decl></i> represents an external image. If a <string> - is provided, it represents the same image that it would if the the string - were given to the ''url()'' function.</p> + <p>Each <i><image-decl></i> represents the external image referenced + by the URI given as the <string> argument.</p> <p>If a <resolution> is given, the image must be rendered at that resolution. <span class='note'>Recall that the default resolution of images is ''1dppx'', @@ -260,13 +260,11 @@ <p>Multiple arguments can be given separated by commas, in which case the function represents the first <image-decl> representing an image that - the browser can successfully load and display. - The final argument can be a <color>, - <a href="#gradients"><gradient></a>, or - <a href="#element-reference"><element-reference></a>, - which serves as the ultimate fallback if none of the preceding <image-decl>s - can be used. If the final argument is a <color>, it represents a solid-color - image of the given color with no <i>intrinsic dimensions</i>. + the browser can successfully load and display. The final argument may be a + <color> which serves as an ultimate fallback if none of the preceding + <image-decl>s can be used, to ensure that any text or images placed on top + of the image are still easily readable. If the final argument is a <color>, it + represents a solid-color image of the given color with no <i>intrinsic dimensions</i>. <div class="example"> <p>The rule below would tell the UA to load ''wavy.svg'' if
Received on Friday, 20 May 2011 22:42:26 UTC