2121
2222 < h1 > CSS Backgrounds and Borders Module Level 3</ h1 >
2323
24- < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 5 March 2009</ h2 >
24+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 25 March 2009</ h2 >
2525
2626 < dl >
2727 < dt > This version:
2828
29- < dd > <!-- <a href="http://www.w3.org/TR/2009/WD-css3-background-20090305 ">http://www.w3.org/TR/2009/WD-css3-background-20090305 </a></dd> -->
29+ < dd > <!-- <a href="http://www.w3.org/TR/2009/WD-css3-background-20090325 ">http://www.w3.org/TR/2009/WD-css3-background-20090325 </a></dd> -->
3030 < a
3131 href ="http://dev.w3.org/csswg/css3-background "> http://dev.w3.org/csswg/css3-background</ a >
3232
@@ -485,7 +485,8 @@ <h3 id=the-background-color-property><span class=secno>3.2 </span>The
485485 < div class =issue >
486486 < p > A previous draft used the syntax
487487
488- < pre > background-color: <color> [ / <color> ]? | / <color></ pre >
488+ < pre
489+ class =rhs > background-color: <color> [ / <color> ]? | / <color></ pre >
489490
490491 < p > where omission of the first color implied the initial value (i.e.
491492 ‘< code class =css > transparent</ code > ’). Examples:</ p >
@@ -528,8 +529,8 @@ <h3 id=the-background-image-property><span class=secno>3.3 </span>The
528529 < tr >
529530 < th > Value:
530531
531- < td > [ < var > <image></ var > | none ] [ , [ < var > <image> </ var > |
532- none ] ]*
532+ < td > < var > < a href =" #ltbg-imagegt " > <bg- image></ a > </ var > [ , < var > < a
533+ href =" #ltbg-imagegt " > <bg-image> </ a > </ var > ]*
533534
534535 < tr >
535536 < th > Initial:
@@ -564,7 +565,10 @@ <h3 id=the-background-image-property><span class=secno>3.3 </span>The
564565
565566 < p > This property sets the background image(s) of an element. Images are
566567 drawn with the first specified one on top (closest to the user) and each
567- subsequent image behind the previous one.
568+ subsequent image behind the previous one. The type < dfn
569+ id =ltbg-imagegt > < var > <bg-image></ var > </ dfn > stands for
570+
571+ < pre class =rhs > < var > <image></ var > | none</ pre >
568572
569573 < p > A value of ‘< code class =css > none</ code > ’ counts as an image
570574 layer but draws nothing. An image that is empty (zero width or zero
@@ -798,7 +802,8 @@ <h3 id=the-background-attachment-property><span class=secno>3.5 </span>The
798802 < tr >
799803 < th > Value:
800804
801- < td > scroll | fixed | local [, scroll | fixed | local]*
805+ < td > < var > < a href ="#ltattachmentgt "> <attachment></ a > </ var > [ ,
806+ < var > < a href ="#ltattachmentgt "> <attachment></ a > </ var > ]*
802807
803808 < tr >
804809 < th > Initial:
@@ -835,7 +840,10 @@ <h3 id=the-background-attachment-property><span class=secno>3.5 </span>The
835840 are fixed with regard to the < em class =index id =viewport > viewport</ em >
836841 (‘< code class =css > fixed</ code > ’) scroll along with the element
837842 (‘< code class =css > scroll</ code > ’ and ‘< code
838- class =css > local</ code > ’).
843+ class =css > local</ code > ’). The type < dfn
844+ id =ltattachmentgt > < var > <attachment></ var > </ dfn > stands for:
845+
846+ < pre class =rhs > scroll | fixed | local</ pre >
839847
840848 < p > Note that there is only one viewport per view. If an element has a
841849 scrolling mechanism (see the ‘< code
@@ -970,8 +978,8 @@ <h3 id=the-background-position-property><span class=secno>3.6 </span>The
970978 within their corresponding < a
971979 href ="#background-positioning-area "> background positioning area.</ a >
972980
973- < p class = syntax > The < dfn
974- id = ltbg-positiongt > < var > <bg-position> </ var > </ dfn > stands for:
981+ < p > The < dfn id = ltbg-positiongt > < var > <bg-position> </ var > </ dfn > stands
982+ for:
975983
976984 < pre class =rhs > [
977985 [ [ < var > < a href ="#position-percentage "> <percentage></ a > </ var > | < var > < a href ="#position-length "> <length></ a > </ var > | left | center | right ] ]
@@ -1229,8 +1237,8 @@ <h3 id=the-background-origin-property><span class=secno>3.8 </span>The
12291237 < tr >
12301238 < th > Value:
12311239
1232- < td > [border-box | padding-box | content-box] [, [border-box |
1233- padding-box | content-box] ]*
1240+ < td > < var > < a href =" #ltbg-origingt " > <bg-origin> </ a > </ var > [ ,
1241+ < var > < a href =" #ltbg-origingt " > <bg-origin> </ a > </ var > ]*
12341242
12351243 < tr >
12361244 < th > Initial:
@@ -1269,7 +1277,10 @@ <h3 id=the-background-origin-property><span class=secno>3.8 </span>The
12691277 boxes on several pages) specifies which boxes the ‘< code
12701278 class =property > < a
12711279 href ="#background-break "> background-break</ a > </ code > ’ operates on to
1272- determine the background positioning area(s).
1280+ determine the background positioning area(s). The < dfn
1281+ id =ltbg-origingt > < var > <bg-origin></ var > </ dfn > stands for:
1282+
1283+ < pre class =rhs > border-box | padding-box | content-box</ pre >
12731284
12741285 < dl >
12751286 < dt > < dfn id =padding-box > padding-box</ dfn >
@@ -1328,12 +1339,8 @@ <h3 id=the-background-size-property><span class=secno>3.9 </span>The
13281339 < tr >
13291340 < th > Value:
13301341
1331- < td > [ [ < var > < a href ="#position-length "> <length></ a > </ var > |
1332- < var > < a href ="#position-percentage "> <percentage></ a > </ var > | auto
1333- ]{1,2} | cover | contain ] [ [ , [ < var > < a
1334- href ="#position-length "> <length></ a > </ var > | < var > < a
1335- href ="#position-percentage "> <percentage></ a > </ var > | auto ]{1,2}
1336- ] | cover | contain ]*
1342+ < td > < var > < a href ="#ltbg-sizegt "> <bg-size></ a > </ var > [ , < var > < a
1343+ href ="#ltbg-sizegt "> <bg-size></ a > </ var > ]*
13371344
13381345 < tr >
13391346 < th > Initial:
@@ -1366,8 +1373,13 @@ <h3 id=the-background-size-property><span class=secno>3.9 </span>The
13661373 < td > for <length> the absolute value, otherwise as specified
13671374 </ table >
13681375
1369- < p > Specifies the size of the background images. Values have the following
1370- meanings:
1376+ < p > Specifies the size of the background images. The type < dfn
1377+ id =ltbg-sizegt > < var > <bg-size></ var > </ dfn > stands for:
1378+
1379+ < pre
1380+ class =rhs > [ < var > < a href ="#position-length "> <length></ a > </ var > | < var > < a href ="#position-percentage "> <percentage></ a > </ var > | auto ]{1,2} | cover | contain</ pre >
1381+
1382+ < p > Values have the following meanings:
13711383
13721384 < dl >
13731385 < dt > < dfn id =contain > contain</ dfn >
@@ -1710,41 +1722,27 @@ <h3 id=the-background-shorthand-property><span class=secno>3.11 </span>The
17101722 < td > see individual properties
17111723 </ table >
17121724
1713- < p class =syntax > < dfn id =ltbg-layergt > < var > <bg-layer></ var > </ dfn >
1714- stands for:
1725+ < p > < dfn id =ltbg-layergt > < var > <bg-layer></ var > </ dfn > stands for:
17151726
1716- < pre class =rhs > < var > <'background-image'></ var >
1717- || < var > <'background-position'></ var >
1718- || / < var > <'background-size'></ var >
1719- || < var > <'background-repeat'></ var >
1720- || < var > <'background-attachment'></ var >
1721- || < var > <'background-origin'></ var >
1722- || no-clip</ pre >
1723-
1724- < p > where ‘< code class =css > / < var > <‘< code class =property > < a
1725- href ="#background-size "> background-size</ a > </ code > ’></ var > </ code > ’
1726- must occur after ‘< code class =css > < var > <‘< code
1727- class =property > < a
1728- href ="#background-position "> background-position</ a > </ code > ’></ var > </ code > ’
1727+ < pre
1728+ class =rhs > < var > < a href ="#ltbg-imagegt "> <bg-image></ a > </ var > || < var > < a href ="#ltbg-positiongt "> <bg-position></ a > </ var > || / < var > < a href ="#ltbg-sizegt "> <bg-size></ a > </ var > || < var > < a href ="#ltrepeatgt "> <repeat></ a > </ var > || < var > < a href ="#ltattachmentgt "> <attachment></ a > </ var > || < var > < a href ="#ltbg-origingt "> <bg-origin></ a > </ var > || no-clip</ pre >
1729+
1730+ < p > where ‘< code class =css > / < var > < a
1731+ href ="#ltbg-sizegt "> <bg-size></ a > </ var > </ code > ’ must occur
1732+ after ‘< code class =css > < a
1733+ href ="#ltbg-positiongt "> < var > <bg-position></ var > </ a > </ code > ’
17291734 if both are present.
17301735
1731- < p class =syntax > < dfn
1732- id =ltfinal-bg-layergt > < var > <final-bg-layer></ var > </ dfn > stands for:
1733-
1734- < pre class =rhs > < var > <'background-image'></ var >
1735- || < var > <'background-position'></ var >
1736- || / < var > <'background-size'></ var >
1737- || < var > <'background-repeat'></ var >
1738- || < var > <'background-attachment'></ var >
1739- || < var > <'background-origin'></ var >
1740- || no-clip
1741- || < var > <'background-color'></ var > </ pre >
1742-
1743- < p > where ‘< code class =css > / < var > <‘< code class =property > < a
1744- href ="#background-size "> background-size</ a > </ code > ’></ var > </ code > ’
1745- must occur after ‘< code class =css > < var > <‘< code
1746- class =property > < a
1747- href ="#background-position "> background-position</ a > </ code > ’></ var > </ code > ’
1736+ < p > < dfn id =ltfinal-bg-layergt > < var > <final-bg-layer></ var > </ dfn >
1737+ stands for:
1738+
1739+ < pre
1740+ class =rhs > < var > < a href ="#ltbg-imagegt "> <'bg-image'></ a > </ var > || < var > < a href ="#ltbg-positiongt "> <bg-position></ a > </ var > || / < var > < a href ="#ltbg-sizegt "> <bg-size></ a > </ var > || < var > < a href ="#ltrepeatgt "> <repeat></ a > </ var > || < var > < a href ="#ltattachmentgt "> <attachment></ a > </ var > || < var > < a href ="#ltbg-origingt "> <bg-origin></ a > </ var > || no-clip || < var > <'background-color'></ var > </ pre >
1741+
1742+ < p > where ‘< code class =css > / < var > < a
1743+ href ="#ltbg-sizegt "> <bg-size></ a > </ var > </ code > ’ must occur
1744+ after ‘< code class =css > < a
1745+ href ="#ltbg-positiongt "> < var > <bg-position></ var > </ a > </ code > ’
17481746 if both are present.
17491747
17501748 < p class =note > Note that a color is permitted in < var > < a
@@ -2202,8 +2200,7 @@ <h3 id=the-border-style><span class=secno>4.2 </span>The ‘<code
22022200 respectively. A missing left is the same as right, a missing bottom is the
22032201 same as top, and a missing right is also the same as top.
22042202
2205- < p class =syntax > < var > < dfn
2206- id =ltborder-stylegt > <border-style></ dfn > </ var > is:
2203+ < p > < var > < dfn id =ltborder-stylegt > <border-style></ dfn > </ var > is:
22072204
22082205 < pre
22092206 class =rhs > none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset</ pre >
@@ -2389,8 +2386,7 @@ <h3 id=the-border-width-properties><span class=secno>4.3 </span>The
23892386
23902387 < p > These properties set the thickness of the border.
23912388
2392- < p class =syntax > The < dfn
2393- id =ltborder-widthgt > < var > <border-width></ var > </ dfn > is
2389+ < p > The < dfn id =ltborder-widthgt > < var > <border-width></ var > </ dfn > is
23942390
23952391 < pre
23962392 class =rhs > < var > < a href ="#position-length "> <length></ a > </ var > | thin | medium | thick</ pre >
@@ -3977,7 +3973,7 @@ <h2 class=no-num id=property-index>Property index</h2>
39773973 < td > < a class =property
39783974 href ="#background-attachment "> background-attachment</ a >
39793975
3980- < td > scroll | fixed | local [, scroll | fixed | local ]*
3976+ < td > <attachment> [ , <attachment> ]*
39813977
39823978 < td > scroll
39833979
@@ -4038,7 +4034,7 @@ <h2 class=no-num id=property-index>Property index</h2>
40384034 < tr valign =baseline >
40394035 < td > < a class =property href ="#background-image "> background-image</ a >
40404036
4041- < td > [ <image> | none ] [ , [ <image> | none ] ]*
4037+ < td > <bg- image> [ , <bg- image> ]*
40424038
40434039 < td > none
40444040
@@ -4053,8 +4049,7 @@ <h2 class=no-num id=property-index>Property index</h2>
40534049 < tr valign =baseline >
40544050 < td > < a class =property href ="#background-origin "> background-origin</ a >
40554051
4056- < td > [border-box | padding-box | content-box] [, [border-box |
4057- padding-box | content-box]]*
4052+ < td > <bg-origin> [ , <bg-origin> ]*
40584053
40594054 < td > padding-box
40604055
@@ -4101,9 +4096,7 @@ <h2 class=no-num id=property-index>Property index</h2>
41014096 < tr valign =baseline >
41024097 < td > < a class =property href ="#background-size "> background-size</ a >
41034098
4104- < td > [ [ <length> | <percentage> | auto ]{1,2} | cover |
4105- contain ] [ [ , [ <length> | <percentage> | auto ]{1,2} ] |
4106- cover | contain ]*
4099+ < td > <bg-size> [ , <bg-size> ]*
41074100
41084101 < td > auto
41094102
@@ -4344,6 +4337,10 @@ <h2 class=no-num id=index>Index</h2>
43444337 < p > , < a href ="#double-and " title ="''&&'' "> < strong > 2</ strong > </ a >
43454338
43464339 < ul >
4340+ < li > < var > < a href ="#ltattachmentgt "> <attachment></ a > </ var > , < a
4341+ href ="#ltattachmentgt "
4342+ title ="<attachment> "> < strong > 3.5</ strong > </ a >
4343+
43474344 < li > authoring tool, < a href ="#authoring-tool " title ="authoring
43484345 tool "> < strong > 5.2</ strong > </ a >
43494346
@@ -4391,13 +4388,22 @@ <h2 class=no-num id=index>Index</h2>
43914388 < li > background-size, < a href ="#background-size "
43924389 title =background-size > < strong > 3.9</ strong > </ a >
43934390
4391+ < li > < var > < a href ="#ltbg-imagegt "> <bg-image></ a > </ var > , < a
4392+ href ="#ltbg-imagegt " title ="<bg-image> "> < strong > 3.3</ strong > </ a >
4393+
43944394 < li > < var > < a href ="#ltbg-layergt "> <bg-layer></ a > </ var > , < a
43954395 href ="#ltbg-layergt " title ="<bg-layer> "> < strong > 3.11</ strong > </ a >
43964396
4397+ < li > < var > < a href ="#ltbg-origingt "> <bg-origin></ a > </ var > , < a
4398+ href ="#ltbg-origingt " title ="<bg-origin> "> < strong > 3.8</ strong > </ a >
4399+
43974400 < li > < var > < a href ="#ltbg-positiongt "> <bg-position></ a > </ var > , < a
43984401 href ="#ltbg-positiongt "
43994402 title ="<bg-position> "> < strong > 3.6</ strong > </ a >
44004403
4404+ < li > < var > < a href ="#ltbg-sizegt "> <bg-size></ a > </ var > , < a
4405+ href ="#ltbg-sizegt " title ="<bg-size> "> < strong > 3.9</ strong > </ a >
4406+
44014407 < li > border, < a href ="#border " title =border > < strong > 4.7</ strong > </ a >
44024408
44034409 < li > border-bottom, < a href ="#border-bottom "
0 commit comments