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 16 February
19+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 17 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-20120216 /">http://www.w3.org/TR/2012/WD-css3-images-20120216 /</a>-->
27+ <!-- <dd><a href="http://www.w3.org/TR/2012/ED-css3-images-20120217 /">http://www.w3.org/TR/2012/WD-css3-images-20120217 /</a>-->
2828
2929
3030 < dt > Latest Version:
@@ -113,7 +113,7 @@ <h2 class="no-num no-toc" id=abstract>Abstract</h2>
113113 level 1 < a href ="#CSS1 " rel =biblioentry > [CSS1]<!--{{CSS1}}--> </ a > .
114114 The main extensions compared to level 2 are the generalization of the
115115 <url> type to the <image> type, several additions to the ‘< a
116- href ="#ltimage "> < code class =css > <image> </ code > </ a > ’ type, a
116+ href ="#image-type "> < code class =css > <image> </ code > </ a > ’ type, a
117117 generic sizing algorithm for images and other replaced content in CSS, and
118118 several properties controlling the interaction of replaced elements and
119119 CSS's layout models.
@@ -321,20 +321,20 @@ <h2 id=intro><span class=secno>1. </span> Introduction</h2>
321321
322322 < h3 id =placement > < span class =secno > 1.1. </ span > Module Interactions</ h3 >
323323
324- < p > This module defines and extends the ‘< a href ="#ltimage "> < code
324+ < p > This module defines and extends the ‘< a href ="#image-type "> < code
325325 class =css > <image> </ code > </ a > ’ value type defined in < a
326326 href ="#CSS3VAL " rel =biblioentry > [CSS3VAL]<!--{{!CSS3VAL}}--> </ a > .
327327 Furthermore it replaces the ‘< code class =css > <url> </ code > ’
328328 type in the ‘< code class =property > background-image</ code > ’ and
329329 ‘< code class =property > list-style-image</ code > ’ definitions in
330- CSS1 and CSS2 and adds ‘< a href ="#ltimage "> < code
330+ CSS1 and CSS2 and adds ‘< a href ="#image-type "> < code
331331 class =css > <image> </ code > </ a > ’ as an alternative to ‘< code
332332 class =css > <url> </ code > ’ in the ‘< code
333333 class =property > content</ code > ’ property's value. It is presumed that
334334 CSS specifications beyond CSS2.1 will use the ‘< a
335- href ="#ltimage "> < code class =css > <image> </ code > </ a > ’ notation in
336- place of ‘< code class =css > <url> </ code > ’ where 2D images are
337- expected. (See e.g. < a href ="#CSS3BG "
335+ href ="#image-type "> < code class =css > <image> </ code > </ a > ’ notation
336+ in place of ‘< code class =css > <url> </ code > ’ where 2D images
337+ are expected. (See e.g. < a href ="#CSS3BG "
338338 rel =biblioentry > [CSS3BG]<!--{{CSS3BG}}--> </ a > .)
339339
340340 < h3 id =values > < span class =secno > 1.2. </ span > Values</ h3 >
@@ -360,7 +360,7 @@ <h2 id=resolution-units><span class=secno>2. </span> Resolution Units: the
360360 <resolution> type</ h2 >
361361
362362 < p > This specification defines the following units as part of the < dfn
363- id =ltresolution > <resolution> </ dfn > value type:
363+ id =resolution-type > <resolution> </ dfn > value type:
364364
365365 < dl >
366366 < dt > < dfn id =dpi > ‘< code class =css > dpi</ code > ’</ dfn >
@@ -410,10 +410,10 @@ <h2 id=image><span class=secno>3. </span> Image Values: the <image> type</h2>
410410 notation</ a > , < a href ="#element-reference "> element reference</ a > , or < a
411411 href ="#gradients "> gradient notation</ a > . Syntactically it is defined as
412412
413- < pre class =prod > < dfn id =ltimage > <image> </ dfn > = < i > <url> </ i > | < a
414- href ="#ltimage -list "> < i > <image-list> </ i > </ a > | < a
415- href ="#ltelement -reference "> < i > <element-reference> </ i > </ a > | < a
416- href ="#ltgradient "> < i > <gradient> </ i > </ a > </ pre >
413+ < pre class =prod > < dfn id =image-type > <image> </ dfn > = < i > <url> </ i > | < a
414+ href ="#image -list-type "> < i > <image-list> </ i > </ a > | < a
415+ href ="#element -reference-type "> < i > <element-reference> </ i > </ a > | < a
416+ href ="#gradient-type "> < i > <gradient> </ i > </ a > </ pre >
417417
418418 < p > Image values can be used in many CSS properties, including the
419419 ‘< code class =property > background-image</ code > ’, ‘< code
@@ -500,14 +500,15 @@ <h3 id=image-notation><span class=secno>3.2. </span> Image Fallbacks and
500500
501501
502502 < pre class =prod > < dfn
503- id =ltimage -list> <image-list> </ dfn > = image( [ <image-decl> , ]* [ <image-decl> | <color> ] )
503+ id =image -list-type > <image-list> </ dfn > = image( [ <image-decl> , ]* [ <image-decl> | <color> ] )
504504< dfn
505- id =ltimage -decl> <image-decl> </ dfn > = <string> [ ltr | rtl ]?</ pre >
505+ id =image -decl-type > <image-decl> </ dfn > = <string> [ ltr | rtl ]?</ pre >
506506
507507 < p > Each < code > <string> </ code > represents a < a
508508 href ="http://dev.w3.org/csswg/css3-values/#urls "> URL</ a > . The computed
509- value of an < a href ="#ltimage-list "> < i > <image-list> </ i > </ a > is the same
510- as specified, except with all relative URLs converted into absolute URLs.
509+ value of an < a href ="#image-list-type "> < i > <image-list> </ i > </ a > is the
510+ same as specified, except with all relative URLs converted into absolute
511+ URLs.
511512
512513 < p > Multiple arguments can be given separated by commas, in which case the
513514 function represents the first <string> representing an image that the
@@ -616,7 +617,7 @@ <h3 id=element-reference><span class=secno>3.3. </span> Using Elements as
616617 class =css > element()</ code > ’ is:
617618
618619 < pre class =prod > < dfn
619- id =ltelement -reference> <element-reference> </ dfn > = element( <id-selector> )</ pre >
620+ id =element -reference-type > <element-reference> </ dfn > = element( <id-selector> )</ pre >
620621
621622 < p > where <id-selector> is an ID selector < a href ="#SELECT "
622623 rel =biblioentry > [SELECT]<!--{{!SELECT}}--> </ a > .
@@ -894,18 +895,18 @@ <h2 id=gradients><span class=secno>4. </span> Gradients</h2>
894895 and many other things. The gradient notations described in this section
895896 allow an author to specify such an image in a terse syntax, so that the UA
896897 can generate the image automatically when rendering the page. The syntax
897- of a < a href ="#ltgradient "> < i > <gradient> </ i > </ a > is:
898+ of a < a href ="#gradient-type "> < i > <gradient> </ i > </ a > is:
898899
899- < pre class =prod > < dfn id =ltgradient > <gradient> </ dfn > = [
900+ < pre class =prod > < dfn id =gradient-type > <gradient> </ dfn > = [
900901 < a
901- href ="#ltlinear -gradient "> < i > <linear-gradient> </ i > </ a > | < a
902- href ="#ltradial -gradient "> < i > <radial-gradient> </ i > </ a > |
902+ href ="#linear -gradient-type "> < i > <linear-gradient> </ i > </ a > | < a
903+ href ="#radial -gradient-type "> < i > <radial-gradient> </ i > </ a > |
903904 < a
904- href ="#ltrepeating -linear-gradient "> < i > <repeating-linear-gradient> </ i > </ a > | < a
905- href ="#ltrepeating -radial-gradient "> < i > <repeating-radial-gradient> </ i > </ a > ]</ pre >
905+ href ="#repeating -linear-gradient-type "> < i > <repeating-linear-gradient> </ i > </ a > | < a
906+ href ="#repeating -radial-gradient-type "> < i > <repeating-radial-gradient> </ i > </ a > ]</ pre >
906907
907908 < div class =example >
908- < p > As with the other < a href ="#ltimage "> < i > <image> </ i > </ a > types
909+ < p > As with the other < a href ="#image-type "> < i > <image> </ i > </ a > types
909910 defined in this specification, gradients can be used in any property that
910911 accepts images. For example:</ p >
911912
@@ -953,7 +954,7 @@ <h4 class=no-toc id=linear-gradient-syntax><span class=secno>4.1.1. </span>
953954
954955 < pre class =prod > < code >
955956< dfn
956- id =ltlinear -gradient> <linear-gradient> </ dfn > = linear-gradient(
957+ id =linear -gradient-type > <linear-gradient> </ dfn > = linear-gradient(
957958 [ [ <angle> | to <side-or-corner> ] ,]?
958959 <color-stop> [, <color-stop> ]+
959960)
@@ -1116,7 +1117,7 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>4.2.1. </span>
11161117
11171118 < pre >
11181119< dfn
1119- id =ltradial -gradient> <radial-gradient> </ dfn > = radial-gradient(
1120+ id =radial -gradient-type > <radial-gradient> </ dfn > = radial-gradient(
11201121 [ [ <shape> || <size> ] [ at <position> ]? , |
11211122 at <position> ,
11221123 ]?
@@ -1133,11 +1134,11 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>4.2.1. </span>
11331134 < p > The arguments are defined as follows:
11341135
11351136 < dl >
1136- < dt id =radial-position > < dfn id =ltposition > <position> </ dfn >
1137+ < dt id =radial-position > < dfn id =position > <position> </ dfn >
11371138
11381139 < dd > Determines the center of the gradient. The
11391140 <!-- FIXME a href="//www.w3.org/TR/css3-values/#position"--> < a
1140- href ="#ltposition "> < i > <position> </ i > </ a > <!--/a--> value type (which is
1141+ href ="#position "> < i > <position> </ i > </ a > <!--/a--> value type (which is
11411142 also used for ‘< code
11421143 class =property > background-position</ code > ’) is defined in < a
11431144 href ="#CSS3VAL " rel =biblioentry > [CSS3VAL]<!--{{!CSS3VAL}}--> </ a > , and is
@@ -1146,17 +1147,17 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>4.2.1. </span>
11461147 this argument is omitted, it defaults to ‘< code
11471148 class =css > center</ code > ’.
11481149
1149- < dt id =radial-shape > < dfn id =ltshape > <shape> </ dfn >
1150+ < dt id =radial-shape > < dfn id =shape > <shape> </ dfn >
11501151
11511152 < dd > Can be either ‘< code class =css > circle</ code > ’ or
11521153 ‘< code class =css > ellipse</ code > ’; determines whether the
11531154 gradient's < a href ="#ending-shape "> < i > ending shape</ i > </ a > is a circle or
1154- an ellipse, respectively. If < a href ="#ltshape "> < i > <shape> </ i > </ a > is
1155+ an ellipse, respectively. If < a href ="#shape "> < i > <shape> </ i > </ a > is
11551156 omitted, the < a href ="#ending-shape "> < i > ending shape</ i > </ a > defaults to
1156- a circle if the < a href ="#ltsize "> < i > <size> </ i > </ a > is a single
1157+ a circle if the < a href ="#size "> < i > <size> </ i > </ a > is a single
11571158 <length> , and to an ellipse otherwise.
11581159
1159- < dt id =radial-size > < dfn id =ltsize > <size> </ dfn >
1160+ < dt id =radial-size > < dfn id =size > <size> </ dfn >
11601161
11611162 < dd >
11621163 < p > Determines the size of the gradient's < a
@@ -1169,7 +1170,7 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>4.2.1. </span>
11691170
11701171 < p > Both ‘< code class =css > circle</ code > ’ and ‘< code
11711172 class =css > ellipse</ code > ’ gradients accept the following keywords
1172- as their < a href ="#ltsize "> < i > <size> </ i > </ a > :
1173+ as their < a href ="#size "> < i > <size> </ i > </ a > :
11731174
11741175 < dl >
11751176 < dt > < dfn id =radial-closest-side > ‘< code
@@ -1210,9 +1211,9 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>4.2.1. </span>
12101211 class =css > farthest-side</ code > ’ were specified.
12111212 </ dl >
12121213
1213- < p > If < a href ="#ltshape "> < i > <shape> </ i > </ a > is specified as
1214- ‘ < code class =css > circle</ code > ’ or is omitted, the < a
1215- href ="#ltsize "> < i > <size> </ i > </ a > may be given explicitly as:
1214+ < p > If < a href ="#shape "> < i > <shape> </ i > </ a > is specified as ‘ < code
1215+ class =css > circle</ code > ’ or is omitted, the < a
1216+ href ="#size "> < i > <size> </ i > </ a > may be given explicitly as:
12161217
12171218 < dl >
12181219 < dt > < dfn id =radial-size-circle > <length> </ dfn >
@@ -1230,9 +1231,9 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>4.2.1. </span>
12301231 over which dimension is used.</ p >
12311232 </ dl >
12321233
1233- < p > If < a href ="#ltshape "> < i > <shape> </ i > </ a > is specified as
1234- ‘ < code class =css > ellipse</ code > ’ or is omitted,
1235- < i > <extent > </ i > may instead be given explicitly as:
1234+ < p > If < a href ="#shape "> < i > <shape> </ i > </ a > is specified as ‘ < code
1235+ class =css > ellipse</ code > ’ or is omitted, < i > <extent > </ i > may
1236+ instead be given explicitly as:
12361237
12371238 < dl >
12381239 < dt > < dfn id =radial-size-ellipse > [<length> | <percentage> ]{2}</ dfn >
@@ -1383,11 +1384,12 @@ <h3 id=repeating-gradients><span class=secno>4.3. </span> Repeating
13831384 class =css > repeating-radial-gradient()</ code > ’ notations</ h3 >
13841385
13851386 < p > In addition to < a
1386- href ="#ltlinear -gradient "> < i > <linear-gradient> </ i > </ a > and < a
1387- href ="#ltradial -gradient "> < i > <radial-gradient> </ i > </ a > , this
1387+ href ="#linear -gradient-type "> < i > <linear-gradient> </ i > </ a > and < a
1388+ href ="#radial -gradient-type "> < i > <radial-gradient> </ i > </ a > , this
13881389 specification defines < dfn
1389- id =ltrepeating-linear-gradient > <repeating-linear-gradient> </ dfn > and
1390- < dfn id =ltrepeating-radial-gradient > <repeating-radial-gradient> </ dfn >
1390+ id =repeating-linear-gradient-type > <repeating-linear-gradient> </ dfn > and
1391+ < dfn
1392+ id =repeating-radial-gradient-type > <repeating-radial-gradient> </ dfn >
13911393 values. These two notations take the same values and are interpreted the
13921394 same as their respective non-repeating siblings defined previously.
13931395
@@ -1488,7 +1490,7 @@ <h3 id=color-stop-syntax><span class=secno>4.4. </span> Gradient
14881490 Color-Stops</ h3 >
14891491
14901492 < pre class =prod > < code > < dfn
1491- id =ltcolor -stop> <color-stop> </ dfn > = <color> [ <percentage> | <length> ]?</ code > </ pre >
1493+ id =color -stop-type > <color-stop> </ dfn > = <color> [ <percentage> | <length> ]?</ code > </ pre >
14921494
14931495 < p > Color-stops are points placed along the line defined by the < a
14941496 href ="#gradient-line "> < i > gradient line</ i > </ a > at the beginning of the
@@ -1701,7 +1703,7 @@ <h3 id=sizing-terms><span class=secno>5.1. </span> Object-Sizing
17011703 href ="#default-object-size "> < i > default object size</ i > </ a > of properties
17021704 and contexts that appear in CSS 2.1, plus ‘< code
17031705 class =property > border-image</ code > ’ from CSS 3 Backgrounds &
1704- Borders. Newer modules that accept an ‘< a href ="#ltimage "> < code
1706+ Borders. Newer modules that accept an ‘< a href ="#image-type "> < code
17051707 class =css > <image> </ code > </ a > ’ component value in a new context
17061708 must define the < a href ="#default-object-size "> < i > default object
17071709 size</ i > </ a > in that context.</ p >
@@ -2100,7 +2102,7 @@ <h3 id=object-position><span class=secno>5.5. </span> Positioning Objects:
21002102 class =property > object-position</ code > </ a > ’ property determines the
21012103 alignment of the replaced element inside its box. The
21022104 <!-- FIXME a href="//www.w3.org/TR/css3-values/#position"--> < a
2103- href ="#ltposition "> < i > <position> </ i > </ a > <!--/a--> value type (which is
2105+ href ="#position "> < i > <position> </ i > </ a > <!--/a--> value type (which is
21042106 also used for ‘< code
21052107 class =property > background-position</ code > ’) is defined in < a
21062108 href ="#CSS3VAL " rel =biblioentry > [CSS3VAL]<!--{{!CSS3VAL}}--> </ a > , and is
@@ -2192,7 +2194,7 @@ <h3 id=image-resolution><span class=secno>6.1. </span> Overriding Image
21922194 meanings:
21932195
21942196 < dl >
2195- < dt > ‘< a href ="#ltresolution "> < code
2197+ < dt > ‘< a href ="#resolution-type "> < code
21962198 class =css > <resolution> </ code > </ a > ’
21972199
21982200 < dd > Specifies the intrinsic resolution explicitly.
@@ -2207,7 +2209,7 @@ <h3 id=image-resolution><span class=secno>6.1. </span> Overriding Image
22072209 < dt > ‘< code class =css > snap</ code > ’
22082210
22092211 < dd > If the "snap" keyword is provided, the computed ‘< a
2210- href ="#ltresolution "> < code class =css > <resolution> </ code > </ a > ’
2212+ href ="#resolution-type "> < code class =css > <resolution> </ code > </ a > ’
22112213 (if any) is the specified resolution rounded to the nearest value that
22122214 would map one image pixel to an integer number of device pixels. If the
22132215 resolution is taken from the image, then the used intrinsic resolution is
@@ -2726,7 +2728,7 @@ <h2 class=no-num id=index>Index</h2>
27262728 href ="#radial-closest-side "
27272729 title ="''closest-side'' "> < strong > 4.2.1.</ strong > </ a >
27282730
2729- < li > <color-stop> , < a href ="#ltcolor -stop "
2731+ < li > <color-stop> , < a href ="#color -stop-type "
27302732 title ="<color-stop> "> < strong > 4.4.</ strong > </ a >
27312733
27322734 < li > concrete object size, < a href ="#concrete-object-size "
@@ -2744,7 +2746,7 @@ <h2 class=no-num id=index>Index</h2>
27442746 < li > ‘< code class =css > dppx</ code > ’, < a href ="#dppx "
27452747 title ="''dppx'' "> < strong > 2.</ strong > </ a >
27462748
2747- < li > <element-reference> , < a href ="#ltelement -reference "
2749+ < li > <element-reference> , < a href ="#element -reference-type "
27482750 title ="<element-reference> "> < strong > 3.3.</ strong > </ a >
27492751
27502752 < li > ending shape, < a href ="#ending-shape "
@@ -2758,7 +2760,7 @@ <h2 class=no-num id=index>Index</h2>
27582760 href ="#radial-farthest-side "
27592761 title ="''farthest-side'' "> < strong > 4.2.1.</ strong > </ a >
27602762
2761- < li > <gradient> , < a href ="#ltgradient "
2763+ < li > <gradient> , < a href ="#gradient-type "
27622764 title ="<gradient> "> < strong > 4.</ strong > </ a >
27632765
27642766 < li > gradient-average-color, < a
@@ -2774,13 +2776,13 @@ <h2 class=no-num id=index>Index</h2>
27742776 < li > gradient ray, < a href ="#gradient-ray "
27752777 title ="gradient ray "> < strong > 4.2.2.</ strong > </ a >
27762778
2777- < li > <image> , < a href ="#ltimage "
2779+ < li > <image> , < a href ="#image-type "
27782780 title ="<image> "> < strong > 3.</ strong > </ a >
27792781
2780- < li > <image-decl> , < a href ="#ltimage -decl "
2782+ < li > <image-decl> , < a href ="#image -decl-type "
27812783 title ="<image-decl> "> < strong > 3.2.</ strong > </ a >
27822784
2783- < li > <image-list> , < a href ="#ltimage -list "
2785+ < li > <image-list> , < a href ="#image -list-type "
27842786 title ="<image-list> "> < strong > 3.2.</ strong > </ a >
27852787
27862788 < li > image-orientation, < a href ="#image-orientation0 "
@@ -2810,7 +2812,7 @@ <h2 class=no-num id=index>Index</h2>
28102812 < li > [<length> | <percentage> ]{2}, < a href ="#radial-size-ellipse "
28112813 title ="[<length> | <percentage>]{2} "> < strong > 4.2.1.</ strong > </ a >
28122814
2813- < li > <linear-gradient> , < a href ="#ltlinear -gradient "
2815+ < li > <linear-gradient> , < a href ="#linear -gradient-type "
28142816 title ="<linear-gradient> "> < strong > 4.1.1.</ strong > </ a >
28152817
28162818 < li > object-fit, < a href ="#object-fit0 "
@@ -2824,31 +2826,33 @@ <h2 class=no-num id=index>Index</h2>
28242826 < li > paint-source, < a href ="#paint-source "
28252827 title =paint-source > < strong > #</ strong > </ a >
28262828
2827- < li > <position> , < a href ="#ltposition "
2829+ < li > <position> , < a href ="#position "
28282830 title ="<position> "> < strong > 4.2.1.</ strong > </ a >
28292831
2830- < li > <radial-gradient> , < a href ="#ltradial -gradient "
2832+ < li > <radial-gradient> , < a href ="#radial -gradient-type "
28312833 title ="<radial-gradient> "> < strong > 4.2.1.</ strong > </ a >
28322834
28332835 < li > renderer, < a href ="#renderer " title =renderer > < strong > 7.2.</ strong > </ a >
28342836
28352837
2836- < li > <repeating-linear-gradient> , < a href ="#ltrepeating-linear-gradient "
2838+ < li > <repeating-linear-gradient> , < a
2839+ href ="#repeating-linear-gradient-type "
28372840 title ="<repeating-linear-gradient> "> < strong > 4.3.</ strong > </ a >
28382841
2839- < li > <repeating-radial-gradient> , < a href ="#ltrepeating-radial-gradient "
2842+ < li > <repeating-radial-gradient> , < a
2843+ href ="#repeating-radial-gradient-type "
28402844 title ="<repeating-radial-gradient> "> < strong > 4.3.</ strong > </ a >
28412845
2842- < li > <resolution> , < a href ="#ltresolution "
2846+ < li > <resolution> , < a href ="#resolution-type "
28432847 title ="<resolution> "> < strong > 2.</ strong > </ a >
28442848
2845- < li > <shape> , < a href ="#ltshape "
2849+ < li > <shape> , < a href ="#shape "
28462850 title ="<shape> "> < strong > 4.2.1.</ strong > </ a >
28472851
28482852 < li > <side-or-corner> , < a href ="#side-or-corner "
28492853 title ="<side-or-corner> "> < strong > 4.1.1.</ strong > </ a >
28502854
2851- < li > <size> , < a href ="#ltsize "
2855+ < li > <size> , < a href ="#size "
28522856 title ="<size> "> < strong > 4.2.1.</ strong > </ a >
28532857
28542858 < li > specified size, < a href ="#specified-size "
0 commit comments