Skip to content

Commit

Permalink
[css-values-4][editorial] Consistent subscript casing.
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Oct 23, 2023
1 parent e1e85af commit 425f8ac
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions css-values-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ Combining Values: Interpolation, Addition, and Accumulation</h2>
If a value type does not define a specific procedure for <a>addition</a>
or is defined as <dfn export>not additive</dfn>,
its <a>addition</a> operation is simply
<var>V<sub>result</sub></var> = <var>V<sub>b</sub></var>.
<var>V<sub>result</sub></var> = <var>V<sub>B</sub></var>.

<dt><dfn id="accumulation" lt="value accumulation | accumulation procedure" local-lt="accumulate | accumulation">accumulation</dfn>
<dd>
Expand Down Expand Up @@ -1273,14 +1273,14 @@ Computation and Combination of <<integer>></h4>
<a>Interpolation</a> of <<integer>> is defined as
<var>V</var><sub>result</sub> =
round((1 - <var>p</var>) &times; <var>V<sub>A</sub></var> +
<var>p</var> &times; <var>V<sub>b</sub></var>);
<var>p</var> &times; <var>V<sub>B</sub></var>);
that is, interpolation happens in the real number space
as for <<number>>s, and the result is converted to an <<integer>>
by [=rounding to the nearest integer=].

<a>Addition</a> of <<integer>> is defined as
<var>V<sub>result</sub></var> =
<var>V<sub>A</sub></var> + <var>V<sub>b</sub></var>
<var>V<sub>A</sub></var> + <var>V<sub>B</sub></var>

<wpt>
css/css-values/calc-positive-fraction-001.html
Expand Down Expand Up @@ -1338,11 +1338,11 @@ Computation and Combination of <<number>></h4>
<a>Interpolation</a> of <<number>> is defined as
<var>V</var><sub>result</sub> =
(1 - <var>p</var>) &times; <var>V<sub>A</sub></var> +
<var>p</var> &times; <var>V<sub>b</sub></var>
<var>p</var> &times; <var>V<sub>B</sub></var>

<a>Addition</a> of <<number>> is defined as
<var>V<sub>result</sub></var> =
<var>V<sub>A</sub></var> + <var>V<sub>b</sub></var>
<var>V<sub>A</sub></var> + <var>V<sub>B</sub></var>

<h3 id='dimensions'>
Numbers with Units: <a>dimension</a> values</h3>
Expand Down Expand Up @@ -1403,11 +1403,11 @@ Combination of Dimensions</h4>
is defined as
<var>V</var><sub>result</sub> =
(1 - <var>p</var>) &times; <var>V<sub>A</sub></var> +
<var>p</var> &times; <var>V<sub>b</sub></var>
<var>p</var> &times; <var>V<sub>B</sub></var>

<a>Addition</a> of <a>compatible</a> <a>dimensions</a> is defined as
<var>V<sub>result</sub></var> =
<var>V<sub>A</sub></var> + <var>V<sub>b</sub></var>
<var>V<sub>A</sub></var> + <var>V<sub>B</sub></var>

<!--
█████ ██
Expand Down Expand Up @@ -1456,11 +1456,11 @@ Computation and Combination of <<percentage>></h4>
<a>Interpolation</a> of <<percentage>> is defined as
<var>V</var><sub>result</sub> =
(1 - <var>p</var>) &times; <var>V<sub>A</sub></var> +
<var>p</var> &times; <var>V<sub>b</sub></var>
<var>p</var> &times; <var>V<sub>B</sub></var>

<a>Addition</a> of <<percentage>> is defined as
<var>V<sub>result</sub></var> =
<var>V<sub>A</sub></var> + <var>V<sub>b</sub></var>
<var>V<sub>A</sub></var> + <var>V<sub>B</sub></var>

<h3 id="mixed-percentages">
Mixing Percentages and Dimensions</h3>
Expand Down Expand Up @@ -1523,11 +1523,11 @@ Computation and Combination of Percentage and Dimension Mixes</h4>
<ul>
<li>
equivalent to <a>interpolation</a> of <<length>>
if both <var>V<sub>A</sub></var> and <var>V<sub>b</sub></var> are pure <<length>> values
if both <var>V<sub>A</sub></var> and <var>V<sub>B</sub></var> are pure <<length>> values

<li>
equivalent to <a>interpolation</a> of <<percentage>>
if both <var>V<sub>A</sub></var> and <var>V<sub>b</sub></var> are pure <<percentage>> values
if both <var>V<sub>A</sub></var> and <var>V<sub>B</sub></var> are pure <<percentage>> values
<li>
equivalent to converting both values into a ''calc()'' expression
representing the sum of the dimension type and a percentage
Expand Down Expand Up @@ -4940,15 +4940,15 @@ Combination of Math Functions</h3>
with each other
or with numeric values and other numeric-valued functions,
is defined as
V<sub>result</sub> = calc((1 - p) * V<sub>A</sub> + p * V<sub>b</sub>).
V<sub>result</sub> = calc((1 - p) * V<sub>A</sub> + p * V<sub>B</sub>).
([=simplify a calculation tree|Simplification=] of the value might then reduce the expression
to a smaller, simpler form.)

[=Addition=] of [=math functions=],
with each other
or with numeric values and other numeric-valued functions,
is defined as
V<sub>result</sub> = calc(V<sub>A</sub> + V<sub>b</sub>).
V<sub>result</sub> = calc(V<sub>A</sub> + V<sub>B</sub>).
([=simplify a calculation tree|Simplification=] of the value might then reduce the expression
to a smaller, simpler form.)

Expand Down

0 comments on commit 425f8ac

Please sign in to comment.