Skip to content

Commit f160a41

Browse files
committed
Cross-linked various value types, such as <repeat> and <bg-image>.
1 parent 88c41e6 commit f160a41

1 file changed

Lines changed: 39 additions & 38 deletions

File tree

css3-background/Overview.src.html

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ <h3>The 'background-color' property</h3>
257257

258258
<div class="issue">
259259
<p>A previous draft used the syntax
260-
<pre>background-color: &lt;color&gt; [ / &lt;color&gt; ]? | / &lt;color&gt;</pre>
260+
<pre class=rhs>background-color: &lt;color&gt; [ / &lt;color&gt; ]? | / &lt;color&gt;</pre>
261261
<p>where omission of the first color implied the initial value
262262
(i.e. ''transparent''). Examples:</p>
263263
<pre>
@@ -286,8 +286,8 @@ <h3>The 'background-image' property</h3>
286286
<td><dfn>background-image</dfn>
287287
<tr>
288288
<th>Value:
289-
<td>[ <var>&lt;image&gt;</var> | none ]
290-
[ , [ <var>&lt;image&gt;</var> | none ] ]*
289+
<td><var>&lt;bg-image&gt;</var>
290+
[ , <var>&lt;bg-image&gt;</var> ]*
291291
<tr>
292292
<th>Initial:
293293
<td>none
@@ -311,6 +311,9 @@ <h3>The 'background-image' property</h3>
311311
<p>This property sets the background image(s) of an element. Images
312312
are drawn with the first specified one on top (closest to the user)
313313
and each subsequent image behind the previous one.
314+
The type <dfn><var>&lt;bg-image&gt;</var></dfn> stands for
315+
316+
<pre class="rhs"><var>&lt;image&gt;</var> | none</pre>
314317

315318
<p>A value of ''none'' counts as an image layer but draws
316319
nothing. An image that is empty (zero width or zero height), that
@@ -504,7 +507,7 @@ <h3>The 'background-attachment' property</h3>
504507
<td><dfn>background-attachment</dfn>
505508
<tr>
506509
<th>Value:
507-
<td>scroll | fixed | local [, scroll | fixed | local]*
510+
<td><var>&lt;attachment&gt;</var> [ , <var>&lt;attachment&gt;</var> ]*
508511
<tr>
509512
<th>Initial:
510513
<td>scroll
@@ -529,6 +532,9 @@ <h3>The 'background-attachment' property</h3>
529532
they are fixed with regard to the <em class="index">viewport</em>
530533
(''fixed'') scroll along with the element (''scroll''
531534
and ''local'').
535+
The type <dfn><var>&lt;attachment&gt;</var></dfn> stands for:
536+
537+
<pre class="rhs">scroll | fixed | local</pre>
532538

533539
<p>Note that there is only one viewport per view. If an element has a
534540
scrolling mechanism (see the 'overflow' property [[!CSS21]]), a
@@ -633,7 +639,7 @@ <h3>The 'background-position' property</h3>
633639
their initial position (after any <a href="#the-background-size">resizing</a>)
634640
within their corresponding <span>background positioning area.</span>
635641

636-
<p class=syntax>The <dfn><var>&lt;bg-position&gt;</var></dfn> stands
642+
<p>The <dfn><var>&lt;bg-position&gt;</var></dfn> stands
637643
for:
638644
<pre class="rhs">[
639645
[ [ <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> | left | center | right ] ]
@@ -845,8 +851,8 @@ <h3>The 'background-origin' property</h3>
845851
<td><dfn>background-origin</dfn>
846852
<tr>
847853
<th>Value:
848-
<td>[border-box | padding-box | content-box]
849-
[, [border-box | padding-box | content-box]]*
854+
<td><var>&lt;bg-origin&gt;</var>
855+
[ , <var>&lt;bg-origin&gt;</var> ]*
850856
<tr>
851857
<th>Initial:
852858
<td>padding-box
@@ -871,7 +877,10 @@ <h3>The 'background-origin' property</h3>
871877
<dfn id="background-positioning-area">background positioning area</dfn>.
872878
For elements rendered as multiple boxes (e.g., inline boxes on several
873879
lines, boxes on several pages) specifies which boxes the 'background-break'
874-
operates on to determine the background positioning area(s).</p>
880+
operates on to determine the background positioning area(s). The
881+
<dfn><var>&lt;bg-origin&gt;</var></dfn> stands for:
882+
883+
<pre class=rhs>border-box | padding-box | content-box</pre>
875884

876885
<dl>
877886
<dt><dfn>padding-box</dfn>
@@ -909,10 +918,7 @@ <h3>The 'background-size' property</h3>
909918
<td><dfn>background-size</dfn>
910919
<tr>
911920
<th>Value:
912-
<td>[ [ <var>&lt;length&gt;</var> | <var>&lt;percentage&gt;</var>
913-
| auto ]{1,2} | cover | contain ]
914-
[ [ , [ <var>&lt;length&gt;</var> | <var>&lt;percentage&gt;</var>
915-
| auto ]{1,2} ] | cover | contain ]*
921+
<td><var>&lt;bg-size&gt;</var> [ , <var>&lt;bg-size&gt;</var> ]*
916922
<tr>
917923
<th>Initial:
918924
<td>auto
@@ -933,8 +939,12 @@ <h3>The 'background-size' property</h3>
933939
<td>for &lt;length&gt; the absolute value, otherwise as specified
934940
</table>
935941

936-
<p>Specifies the size of the background images. Values have the
937-
following meanings:
942+
<p>Specifies the size of the background images. The type
943+
<dfn><var>&lt;bg-size&gt;</var></dfn> stands for:
944+
945+
<pre class=rhs>[ <var>&lt;length&gt;</var> | <var>&lt;percentage&gt;</var> | auto ]{1,2} | cover | contain</pre>
946+
947+
<p>Values have the following meanings:
938948

939949
<dl>
940950
<dt><dfn>contain</dfn></dt>
@@ -1235,28 +1245,19 @@ <h3>The 'background' shorthand property</h3>
12351245
<td>see individual properties
12361246
</table>
12371247

1238-
<p class=syntax><dfn><var>&lt;bg-layer&gt;</var></dfn> stands for:
1239-
<pre class="rhs"><var>&lt;'background-image'&gt;</var>
1240-
|| <var>&lt;'background-position'&gt;</var>
1241-
|| / <var>&lt;'background-size'&gt;</var>
1242-
|| <var>&lt;'background-repeat'&gt;</var>
1243-
|| <var>&lt;'background-attachment'&gt;</var>
1244-
|| <var>&lt;'background-origin'&gt;</var>
1245-
|| no-clip</pre>
1246-
<p>where ''/ <var>&lt;'background-size'&gt;</var>'' must occur after
1247-
''<var>&lt;'background-position'&gt;</var>'' if both are present.
1248-
1249-
<p class=syntax><dfn><var>&lt;final-bg-layer&gt;</var></dfn> stands for:
1250-
<pre class="rhs"><var>&lt;'background-image'&gt;</var>
1251-
|| <var>&lt;'background-position'&gt;</var>
1252-
|| / <var>&lt;'background-size'&gt;</var>
1253-
|| <var>&lt;'background-repeat'&gt;</var>
1254-
|| <var>&lt;'background-attachment'&gt;</var>
1255-
|| <var>&lt;'background-origin'&gt;</var>
1256-
|| no-clip
1257-
|| <var>&lt;'background-color'&gt;</var></pre>
1258-
<p>where ''/ <var>&lt;'background-size'&gt;</var>'' must occur after
1259-
''<var>&lt;'background-position'&gt;</var>'' if both are present.
1248+
<p><dfn><var>&lt;bg-layer&gt;</var></dfn> stands for:
1249+
1250+
<pre class="rhs"><var>&lt;bg-image&gt;</var> || <var>&lt;bg-position&gt;</var> || / <var>&lt;bg-size&gt;</var> || <var>&lt;repeat&gt;</var> || <var>&lt;attachment&gt;</var> || <var>&lt;bg-origin&gt;</var> || no-clip</pre>
1251+
1252+
<p>where ''/ <var>&lt;bg-size&gt;</var>'' must occur after
1253+
''<var>&lt;bg-position&gt;</var>'' if both are present.
1254+
1255+
<p><dfn><var>&lt;final-bg-layer&gt;</var></dfn> stands for:
1256+
1257+
<pre class="rhs"><var>&lt;'bg-image'&gt;</var> || <var>&lt;bg-position&gt;</var> || / <var>&lt;bg-size&gt;</var> || <var>&lt;repeat&gt;</var> || <var>&lt;attachment&gt;</var> || <var>&lt;bg-origin&gt;</var> || no-clip || <var>&lt;'background-color'&gt;</var></pre>
1258+
1259+
<p>where ''/ <var>&lt;bg-size&gt;</var>'' must occur after
1260+
''<var>&lt;bg-position&gt;</var>'' if both are present.
12601261

12611262
<p class=note>Note that a color is permitted in
12621263
<var>&lt;final-bg-layer&gt;</var>, but not in <var>&lt;bg-layer&gt;</var>.
@@ -1594,7 +1595,7 @@ <h3 id="the-border-style">The 'border-style' properties</h3>
15941595
respectively. A missing left is the same as right, a missing bottom is
15951596
the same as top, and a missing right is also the same as top.
15961597

1597-
<p class=syntax><var><dfn>&lt;border-style&gt;</dfn></var> is:
1598+
<p><var><dfn>&lt;border-style&gt;</dfn></var> is:
15981599
<pre class="rhs">none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset</pre>
15991600

16001601
<p>Values have the following meanings:
@@ -1734,7 +1735,7 @@ <h3>The 'border-width' properties</h3>
17341735

17351736
<p>These properties set the thickness of the border.
17361737

1737-
<p class=syntax>The <dfn><var>&lt;border-width&gt;</var></dfn> is
1738+
<p>The <dfn><var>&lt;border-width&gt;</var></dfn> is
17381739
<pre class="rhs"><var>&lt;length&gt;</var> | thin | medium | thick</pre>
17391740

17401741
<p>The <var>&lt;length&gt;</var> may not be

0 commit comments

Comments
 (0)