Skip to content

Commit f8d3a98

Browse files
committed
[css-values] Expand example
1 parent 3681dcf commit f8d3a98

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

css-values/Overview.bs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,13 +1528,18 @@ Range Checking</h4>
15281528
to define their allowable values as a closed (not open) interval.
15291529

15301530
<div class=example>
1531-
These two are equivalent to 'width: 0px' since widths
1532-
smaller than 0px are not allowed.
1531+
Since widths smaller than 0px are not allowed,
1532+
these three declarations are equivalent:
15331533

15341534
<pre>
15351535
width: calc(5px - 10px);
1536+
width: calc(-5px);
15361537
width: 0px;
15371538
</pre>
1539+
1540+
Note however that ''width: -5px'' is not equivalent to ''width: calc(-5px)''!
1541+
Out-of-range values outside ''calc()'' are synactically invalid,
1542+
and cause the entire declaration to be dropped.
15381543
</div>
15391544

15401545
<h4 id='calc-serialize'>

0 commit comments

Comments
 (0)