Skip to content

Commit e811c7f

Browse files
committed
Define list modifier (#) as suggested by Anne van Kesteren; improve examples
1 parent 24bde97 commit e811c7f

1 file changed

Lines changed: 43 additions & 11 deletions

File tree

css3-values/Overview.src.html

Lines changed: 43 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ <h3 id="value-types">
186186
<li>A pair of numbers in curly braces ({<var>A</var>,<var>B</var>})
187187
indicates that the preceding type, word, or group occurs at least
188188
<var>A</var> and at most <var>B</var> times.
189+
190+
<li>A hash mark (#) indicates that the preceding type, word, or
191+
group occurs one or more times, separated by comma tokens.
189192
</ul>
190193

191194
<h3 id="value-types">
@@ -212,17 +215,46 @@ <h3 id="value-types">
212215
<p>Below are some examples of properties with their corresponding value
213216
definition fields
214217

215-
<div class=example>
216-
<p>Here are some sample properties with corresponding value definition fields:
217-
<table>
218-
<tr><th>Property<th>Value definition field
219-
<tr><td>min-width<td>&lt;length&gt; | &lt;percentage&gt; | inherit
220-
<tr><td>outline-color<td>&lt;color&gt; | invert | inherit
221-
<tr><td>orphans<td>&lt;integer&gt; | inherit
222-
<tr><td>pitch<td>&lt;frequency&gt; | x-low | low | medium | high | x-high | inherit
223-
<tr><td>string-set<td>[[ &lt;identifier> &lt;content-list>] [, &lt;identifier> &lt;content-list>]* ] | none
224-
</table>
225-
</div>
218+
<div class=example>
219+
<table class="data" id="propvalues">
220+
<thead>
221+
<tr><th>Property
222+
<th>Value definition field
223+
<th>Example value
224+
</thead>
225+
<tbody>
226+
<tr><td>'orphans'
227+
<td>&lt;integer&gt;
228+
<td>''3''
229+
<tr><td>'text-align'
230+
<td>left | right | center | justify
231+
<td>''center''
232+
<tr><td>'padding-top'
233+
<td>&lt;length&gt; | &lt;percentage&gt;
234+
<td>''5%''
235+
<tr><td>'outline-color'
236+
<td>&lt;color&gt; | invert
237+
<td>''#fefefe''
238+
<tr><td>'text-decoration'
239+
<td>none | underline || overline || line-through || blink
240+
<td>''overline underline''
241+
<tr><td>'font-family'
242+
<td>&lt;family-name&gt;#
243+
<td>''"Gill Sans", Futura, sans-serif''
244+
<tr><td>'border-width'
245+
<td>[ &lt;length&gt; | thick | medium | thin ]{1,4}
246+
<td>''2px medium 4px''
247+
<tr><td>'text-shadow'
248+
<td>[ inset? && [ &lt;length&gt;{2,4} && &lt;color&gt;? ] ]# | none
249+
<td>''3px 3px rgba(50%, 50%, 50%, 50%), lemonchiffon 0 0 4px inset''
250+
<tr><td>'voice-pitch'
251+
<td><pre class="value">&lt;frequency> && absolute |
252+
<!-- -->[[x-low | low | medium | high | x-high] ||
253+
<!-- --> [&lt;frequency> | &lt;semitones> | &lt;percentage>]]</pre>
254+
<td>''-2st x-low''
255+
</tbody>
256+
</table>
257+
</div>
226258

227259
<h2>Syntax and terminology</h2>
228260

0 commit comments

Comments
 (0)