@@ -739,8 +739,9 @@ <h3 id=the-background-repeat><span class=secno>3.4 </span>The ‘<code
739739 < p > < img alt ="Image of an element with a dotted background " src =bg-space >
740740
741741 < p class =caption > The effect of ‘< code class =property > < a
742- href ="#space "> space</ a > </ code > ’: the image of a dot is tiled to
743- cover the whole background and the images are equally spaced.
742+ href ="#border-image-space "> space</ a > </ code > ’: the image of a dot
743+ is tiled to cover the whole background and the images are equally
744+ spaced.
744745 </ div >
745746 </ div >
746747
@@ -3155,6 +3156,12 @@ <h3 id=the-border-image-repeat><span class=secno>5.5 </span>The
31553156 < dd > The image is tiled (repeated) to fill the area. If it does not fill
31563157 the area with a whole number of tiles, the image is rescaled so that it
31573158 does.
3159+
3160+ < dt > < dfn id =border-image-space > space</ dfn >
3161+
3162+ < dd > The image is tiled (repeated) to fill the area. If it does not fill
3163+ the area with a whole number of tiles, the extra space is distributed
3164+ around the tiles.
31583165 </ dl >
31593166
31603167 < p > The exact process for scaling and tiling the border-image parts is given
@@ -3218,43 +3225,53 @@ <h3 id=border-image-process><span class=secno>5.6 </span>Border-image
32183225 property.
32193226
32203227 < li >
3221- < p > If the first keyword is ‘< code class =property > < a
3222- href ="#border-image-repeat "> repeat</ a > </ code > ’, the top, middle,
3223- and bottom images are not changed any further.
3228+ < p > If the first keyword is ‘< code class =css > < a
3229+ href ="#border-image-repeat "> repeat</ a > </ code > ’ or ‘< code
3230+ class =css > < a href ="#border-image-space "> space</ a > </ code > ’, the
3231+ top, middle, and bottom images are not changed any further.
32243232
32253233 < li >
32263234 < p > The effects of ‘< code class =css > < a
32273235 href ="#border-image-stretch "> stretch</ a > </ code > ’, ‘< code
3228- class =css > < a href ="#border-image-round "> round</ a > </ code > ’, and
3236+ class =css > < a href ="#border-image-round "> round</ a > </ code > ’,
32293237 ‘< code class =css > < a
3230- href ="#border-image-repeat "> repeat</ a > </ code > ’ for the second
3231- keyword are analogous, acting on the height of the left, middle and
3232- right images.
3238+ href ="#border-image-repeat "> repeat</ a > </ code > ’, and ‘< code
3239+ class =css > < a href ="#border-image-space "> space</ a > </ code > ’ for
3240+ the second keyword are analogous, acting on the height of the left,
3241+ middle and right images.
32333242 </ ul >
32343243
32353244 < li > Position the first tile.
32363245 < ul >
32373246 < li >
32383247 < p > If the first keyword is ‘< code class =css > < a
3239- href ="#border-image-round " > round </ a > </ code > ’, the top, middle,
3240- and bottom images are placed at the left edge of their respective
3241- parts of the border-image area. Otherwise the images are centered
3242- horizontally in their respective areas .
3248+ href ="#border-image-repeat " > repeat </ a > </ code > ’, the top, middle,
3249+ and bottom images are centered horizontally in their respective areas.
3250+ Otherwise the images are placed at the left edge of their respective
3251+ parts of the border-image area .
32433252
32443253 < li >
3245- < p > If the second keyword is ‘< code class =css > < a
3246- href ="#border-image-round " > round </ a > </ code > ’, the left, middle ,
3247- and right images are placed at the top edge of their respective parts
3248- of the border-image area . Otherwise the images are centered vertically
3249- in their respective areas .
3254+ < p > If the first keyword is ‘< code class =css > < a
3255+ href ="#border-image-repeat " > repeat </ a > </ code > ’, the left,
3256+ middle, and right images are centered vertically in their respective
3257+ areas . Otherwise the images are placed at the top edge of their
3258+ respective parts of the border-image area .
32503259 </ ul >
32513260
32523261 < li > Tile and draw.
32533262 < ul >
32543263 < li >
3255- < p > The images are then tiled within their respective areas. All images
3264+ < p > The images are then tiled to fill their respective areas. All images
32563265 are drawn at the same stacking level as normal borders: immediately in
32573266 front of the background layers.
3267+
3268+ < li >
3269+ < p > In the case of ‘< code class =css > < a
3270+ href ="#border-image-space "> space</ a > </ code > ’, any partial tiles
3271+ are discarded and the extra space distributed before, after, and
3272+ between the tiles. (I.e. the gap before the first tile, the gap after
3273+ the last tile, and the gaps between tiles are equalized.) < span
3274+ class =note > This can result in empty border-image side areas.</ span >
32583275 </ ul >
32593276 </ ol >
32603277
@@ -4891,8 +4908,10 @@ <h2 class=no-num id=index>Index</h2>
48914908
48924909 < li > solid, < a href ="#solid " title =solid > < strong > 4.2</ strong > </ a >
48934910
4894- < li > space, < a href ="#space " title =space > < strong > 3.4</ strong > </ a > , < a
4895- href ="#space-space " title =space > < strong > 3.4</ strong > </ a >
4911+ < li > space, < a href ="#border-image-space "
4912+ title =space > < strong > 5.5</ strong > </ a > , < a href ="#space "
4913+ title =space > < strong > 3.4</ strong > </ a > , < a href ="#space-space "
4914+ title =space > < strong > 3.4</ strong > </ a >
48964915
48974916 < li > stretch, < a href ="#border-image-stretch "
48984917 title =stretch > < strong > 5.5</ strong > </ a >
0 commit comments