We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3681dcf commit f8d3a98Copy full SHA for f8d3a98
1 file changed
css-values/Overview.bs
@@ -1528,13 +1528,18 @@ Range Checking</h4>
1528
to define their allowable values as a closed (not open) interval.
1529
1530
<div class=example>
1531
- These two are equivalent to 'width: 0px' since widths
1532
- smaller than 0px are not allowed.
+ Since widths smaller than 0px are not allowed,
+ these three declarations are equivalent:
1533
1534
<pre>
1535
width: calc(5px - 10px);
1536
+ width: calc(-5px);
1537
width: 0px;
1538
</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.
1543
</div>
1544
1545
<h4 id='calc-serialize'>
0 commit comments