Skip to content

Commit 1265976

Browse files
committed
[css-values-3] Tidy bracket range definition
- Fix incorrect heading level & a typo from 8ea8d7d - Add examples converting the notation to prose.
1 parent 6030c88 commit 1265976

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

css-values-3/Overview.bs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -681,12 +681,12 @@ Numeric Data Types</h2>
681681
and various <a>dimensions</a>
682682
including <<length>>, <<angle>>, <<time>>, <<frequency>>, and <<resolution>>.
683683

684-
Note: While genera-purpose <a>dimensions</a> are defined here,
684+
Note: While general-purpose <a>dimensions</a> are defined here,
685685
some other modules define additional data types
686686
(e.g. [[css-grid-1]] introduces ''fr'' units)
687687
whose usage is more localized.
688688

689-
<h2 id="numeric-ranges">
689+
<h3 id="numeric-ranges">
690690
Range Restrictions and Range Definition Notation</h3>
691691

692692
Properties can restrict numeric values to some range.
@@ -698,8 +698,8 @@ Range Restrictions and Range Definition Notation</h3>
698698
<code>[<var>min</var>,<var>max</var>]</code>
699699
within the angle brackets, after the identifying keyword,
700700
indicating a closed range
701-
between (and including) <var>min</var> and <var>max</var>,
702-
e.g. <<integer [0,10]>>.
701+
between (and including) <var>min</var> and <var>max</var>.
702+
For example, <<integer [0,10]>> indicates an integer between 0 and 10, inclusive.
703703

704704
Note: CSS values generally do not allow open ranges;
705705
thus only square-bracket notation is used.
@@ -709,6 +709,7 @@ Range Restrictions and Range Definition Notation</h3>
709709
UAs should support reasonably useful ranges and precisions.
710710
Range extremes that are ideally unlimited
711711
are indicated using &infin; or &minus;&infin; as appropriate.
712+
For example, <<length [0, &infin;]>> indicates a non-negative length.
712713

713714
If no range is indicated,
714715
either by using the <a>bracketed range notation</a>

0 commit comments

Comments
 (0)