Skip to content

Commit cff7322

Browse files
committed
[css-values-4] Remove mention of combining number and percentage in calc(), and add clarifying issue. Fixes #2789.
1 parent c150bcf commit cff7322

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

css-values-4/Overview.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Inline Github Issues: yes
1717
</pre>
1818
<pre class='link-defaults'>
1919
spec: css-backgrounds-3; type: type; text: <position>
20-
spec: css21; type: property; text: border-collapse
20+
spec: css2; type: property; text: border-collapse
2121
spec: css-color-4; type: value; text: currentcolor
2222
spec: css-cascade-4; type: at-rule; text: @import
2323
</pre>
@@ -748,7 +748,7 @@ Percentages: the <<percentage>> type</h3>
748748
or something else.
749749

750750
In cases where a <<percentage>> can represent the same quantity
751-
as a <a>dimension</a> or <a>number</a> in the same <a>component value</a> position,
751+
as a <a>dimension</a> in the same <a>component value</a> position,
752752
and can therefore be combined with them in a ''calc()'' expression,
753753
the following convenience notations may be used in the property grammar:
754754

@@ -764,9 +764,6 @@ Percentages: the <<percentage>> type</h3>
764764
: <dfn>&lt;time-percentage></dfn>
765765
:: Equivalent to <code class=prod>[ <<time>> | <<percentage>> ]</code>,
766766
where the <<percentage>> will resolve to a <<time>>.
767-
: <dfn>&lt;number-percentage></dfn>
768-
:: Equivalent to <code class=prod>[ <<number>> | <<percentage>> ]</code>,
769-
where the <<percentage>> will resolve to a <<number>>.
770767

771768
<div class="example">
772769
For example, the 'width' property can accept a <<length>> or a <<percentage>>,
@@ -787,6 +784,10 @@ Percentages: the <<percentage>> type</h3>
787784
Note: Specifications should never alternate <<percentage>> in place of a dimension
788785
in a grammar unless they are <a>compatible</a>.
789786

787+
Note: More &lt;TYPE-percentage> productions can be added in the future as needed.
788+
A &lt;number-percentage> will never be added,
789+
as <<number>> and <<percentage>> can't be combined in ''calc()''.
790+
790791
<h3 id='dimensions'>
791792
Numbers with Units: <a>dimensions</a></h3>
792793

0 commit comments

Comments
 (0)