@@ -386,9 +386,10 @@ <h3>The 'background-repeat' property</h3>
386386 < td > as specified
387387</ table >
388388
389- < p > Specifies how images are tiled. The type
390- < dfn > < var > <repeat></ var > </ dfn > stands for: repeat-x | repeat-y |
391- [repeat | space | round | no-repeat]{1,2}.
389+ < p class =syntax > Specifies how images are tiled. The type
390+ < dfn > < var > <repeat></ var > </ dfn > stands for: < span
391+ class =rhs > repeat-x | repeat-y | [repeat | space | round |
392+ no-repeat]{1,2}</ span > .
392393
393394< p > See the section < a href ="#layering "> “Layering multiple
394395background images”</ a > for how each comma-separated value is
@@ -638,11 +639,12 @@ <h3>The 'background-position' property</h3>
638639'background-image' each of the comma-separated
639640values applies.
640641
641- < p > The < dfn > < var > <bg-position></ var > </ dfn > stands for: [ [
642- < var > <percentage></ var > | < var > <length></ var > | left |
643- center | right ] [ < var > <percentage></ var > |
644- < var > <length></ var > | top | center | bottom ]? ] | [ [ left |
645- center | right ] || [ top | center | bottom ] ]
642+ < p class =syntax > The < dfn > < var > <bg-position></ var > </ dfn > stands
643+ for: < span class =rhs > [ [ < var > <percentage></ var > |
644+ < var > <length></ var > | left | center | right ] [
645+ < var > <percentage></ var > | < var > <length></ var > | top |
646+ center | bottom ]? ] | [ [ left | center | right ] || [ top | center |
647+ bottom ] ]</ span >
646648
647649< p id =bg-area-edge > Each < var > <bg-position></ var > specifies an
648650offset from the top left corner of either the viewport (if
@@ -783,11 +785,11 @@ <h3>The 'background-clip' property</h3>
783785 < td > < dfn > background-clip</ dfn >
784786 < tr >
785787 < th > Value:
786- < td > [< dfn title =" clip-border " > border </ dfn > | < dfn
787- title =" clip-padding " > padding </ dfn > ] [, [border | padding] ]*
788+ < td > [border-box | padding-box | content-box | no-clip]
789+ [ , [border-box | padding-box | content-box | no-clip] ]*
788790 < tr >
789791 < th > Initial:
790- < td > border
792+ < td > border-box
791793 < tr >
792794 < th > Applies to:
793795 < td > all elements
@@ -805,12 +807,22 @@ <h3>The 'background-clip' property</h3>
805807 < td > same as specified value
806808</ table >
807809
808- < p > Determines whether the background may extend into the border area or
809- not. If the value is '''padding'', the background
810- is clipped to the padding edge and the background of the border is
811- transparent. If the value is < span class =css
812- title ="clip-border "> 'border'</ span > , the background extends into the
813- border area.
810+ < p > Determines whether the background may extend into the padding and
811+ border areas. If the value is < dfn
812+ title =clip-padding-box > '''padding-box''</ dfn > , the background is
813+ clipped to the < span > padding box.</ span > If the value is < dfn
814+ title ="clip-border-box "> ''border-box''</ dfn > , the background is
815+ clipped to the < span > border box.</ span > If the value is < dfn
816+ title ="clip-content-box "> ''content-box''</ dfn > , the background is
817+ clipped to the < span > content box.</ span >
818+
819+ < p > If the value is < dfn > ''no-clip''</ dfn > and the background image is
820+ not repeated, then the image is not clipped. If the image is repeated,
821+ copies that are completely outside the < span > border box</ span > are
822+ clipped, but copies that are partially inside it are not clipped.
823+ Background images may still be clipped by 'overflow' or by the
824+ viewport. A value of ''no-clip'' clips the background color to
825+ the < span > border box.</ span >
814826
815827< p class =note > Note that the background is drawn < em > behind</ em > the
816828border, if any. See “Elaborate description of Stacking
@@ -831,10 +843,9 @@ <h3>The 'background-origin' property</h3>
831843 < td > < dfn > background-origin</ dfn >
832844 < tr >
833845 < th > Value:
834- < td > [< dfn title ="origin-border "> border</ dfn > | < dfn
835- title ="origin-padding "> padding</ dfn > | < dfn
836- title ="origin-content "> content</ dfn > ]
837- [, [border | padding | content]]*
846+ < td > [< dfn > border-box</ dfn > | < dfn > padding-box</ dfn > |
847+ < dfn > content-box</ dfn > ]
848+ [, [border-box | padding-box | content-box]]*
838849 < tr >
839850 < th > Initial:
840851 < td > padding
@@ -855,29 +866,23 @@ <h3>The 'background-origin' property</h3>
855866 < td > same as specified value
856867</ table >
857868
858- < p > Determines how the
859- 'background-position' is calculated. With a
860- value of < span class =css title ="origin-padding "> 'padding'</ span > , the
861- position is relative to the padding edge ( ''0 0''
862- is the upper left corner of the padding edge, ''100%
863- 100%'' is the lower right corner). < span class =css
864- title ="origin-border "> 'Border'</ span > means the position is relative
865- to the border edge, and < span class =css
866- title ="origin-content "> 'content'</ span > means relative to the content
867- edge.
869+ < p > Determines how the 'background-position' is calculated. With a
870+ value of ''padding-box'', the position is relative to the
871+ < span > padding box</ span > (''0 0'' is the upper left corner of the
872+ padding edge, ''100% 100%'' is the lower right corner). ''Border-box'
873+ means the position is relative to the < span > border box,</ span > and
874+ ''content-box'' means relative to the < span > content box.</ span >
868875
869876< p > Each comma-separated value applies to one image of
870877'background-image'. See the section < a
871878href ="#layering "> “Layering multiple background images”</ a >
872879for how origin values and images are paired.
873880
874- < p class ="note "> Note that if ''background-clip''
875- is < span title ="clip-padding " class =css > 'padding'</ span > ,
876- ''background-origin'' is < span title ="origin-border "
877- class =css > 'border'</ span > , and
878- ''background-position'' is ''top
879- left'' (the initial value), then the top left of the background
880- image will be clipped.
881+ < p class ="note "> Note that if ''background-clip'' is < span
882+ title ="clip-padding-box "> ''padding-box''</ span > , 'background-origin'
883+ is 'border-box', and 'background-position' is ''top left'' (the
884+ initial value), then the top left of the background image will be
885+ clipped.
881886
882887
883888
@@ -1312,26 +1317,26 @@ <h3>The 'background' property</h3>
13121317 < td > see individual properties
13131318</ table >
13141319
1315- < p > < dfn > < var > <bg-layer></ var > </ dfn > stands for:
1316- < var > < 'background-image'></ var >
1320+ < p class = syntax > < dfn > < var > <bg-layer></ var > </ dfn > stands for:
1321+ < span class = rhs > < var > < 'background-image'></ var >
13171322|| < var > < 'background-position'></ var >
13181323|| / < var > < 'background-size'></ var >
13191324|| < var > < 'background-repeat'></ var >
13201325|| < var > < 'background-attachment'></ var >
13211326|| < var > < 'background-clip'></ var >
1322- < var > < 'background-origin'></ var > ?
1327+ < var > < 'background-origin'></ var > ?</ span >
13231328where ''/ < var > < 'background-size'></ var > '' must occur after
13241329''< var > <'background-position'></ var > '' if both are present.
13251330
1326- < p > < dfn > < var > <final-bg-layer></ var > </ dfn > stands for:
1327- < var > < 'background-image'></ var >
1331+ < p class = syntax > < dfn > < var > <final-bg-layer></ var > </ dfn > stands for:
1332+ < span class = rhs > < var > < 'background-image'></ var >
13281333|| < var > < 'background-position'></ var >
13291334|| / < var > < 'background-size'></ var >
13301335|| < var > < 'background-repeat'></ var >
13311336|| < var > < 'background-attachment'></ var >
13321337|| [ < var > < 'background-clip'></ var >
13331338 < var > < 'background-origin'></ var > ? ]
1334- || < var > < 'background-color'></ var >
1339+ || < var > < 'background-color'></ var > </ span >
13351340where ''/ < var > < 'background-size'></ var > '' must occur after
13361341''< var > <'background-position'></ var > '' if both are present.
13371342
@@ -1352,11 +1357,10 @@ <h3>The 'background' property</h3>
13521357initial value, if no explicit value was specified. (It does not set
13531358 'background-break'.)
13541359
1355- < p > The ''::first-line'' pseudo-element is like an
1356- inline-level element for the purposes of the background (see section
1357- 5.12.1 of [[!CSS21]]). That means, e.g., that in a left-justified
1358- first line, the background does not necessarily extend all the way to
1359- the right margin.
1360+ < p > The ''::first-line'' pseudo-element is like an inline-level element
1361+ for the purposes of the background (see section 5.12.1 of [[!CSS21]]).
1362+ That means, e.g., that in a left-justified first line, the background
1363+ does not necessarily extend all the way to the right margin.
13601364
13611365< div class ="example ">
13621366< p style ="display:none "> Examples:
@@ -1643,9 +1647,9 @@ <h3 id="the-border-style">The 'border-style' properties</h3>
16431647respectively. A missing left is the same as right, a missing bottom is
16441648the same as top, and a missing right is also the same as top.
16451649
1646- < p > < var > < dfn > <border-style></ dfn > </ var > is: none | hidden |
1647- dotted | dashed | solid | double |
1648- groove | ridge | inset | outset. Values have the following meanings:
1650+ < p class = syntax > < var > < dfn > <border-style></ dfn > </ var > is: < span
1651+ class = rhs > none | hidden | dotted | dashed | solid | double | groove |
1652+ ridge | inset | outset</ span > . Values have the following meanings:
16491653
16501654< dl >
16511655 < dt > < dfn title ="border-style-none "> none</ dfn >
@@ -1782,15 +1786,16 @@ <h3>The 'border-width' properties</h3>
17821786
17831787< p > These properties set the thickness of the border.
17841788
1785- < p > The < dfn > < var > <border-width></ var > </ dfn > is
1786- '< var > <length></ var > | < var > <percentage></ var > | thin |
1787- medium | thick'. The < var > <length></ var > and
1788- < var > <percentage></ var > may not be negative. The lengths
1789- corresponding to 'thin', 'medium' and 'thick' are not specified, but
1790- the values are constant throughout a < span > document</ span > and thin
1791- ≤ medium ≤ thick. A UA could, e.g., make the thickness depend on
1792- the 'medium' font size: one choice might be 1, 3 & 5px when the
1793- 'medium' font size is 17px or less.
1789+ < p class =syntax > The < dfn > < var > <border-width></ var > </ dfn > is
1790+ < span class =rhs > < var > <length></ var > |
1791+ < var > <percentage></ var > | thin | medium | thick</ span > . The
1792+ < var > <length></ var > and < var > <percentage></ var > may not be
1793+ negative. The lengths corresponding to ''thin'', ''medium'' and
1794+ ''thick'' are not specified, but the values are constant throughout a
1795+ < span > document</ span > and thin ≤ medium ≤ thick. A UA could,
1796+ e.g., make the thickness depend on the ''medium'' font size: one
1797+ choice might be 1, 3 & 5px when the 'medium' font size is 17px or
1798+ less.
17941799
17951800< p > 'Border-width' is a shorthand that sets the
17961801four 'border-*-width' properties. If it has four values, they set top, right,
0 commit comments