Skip to content

Commit

Permalink
[css-color-hdr] For dynamic-range-limit, change high to no-limit #11698
Browse files Browse the repository at this point in the history
  • Loading branch information
svgeesus committed Feb 12, 2025
1 parent c69a2e2 commit e35ab89
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions css-color-hdr-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ The 'dynamic-range-limit' property {#the-dynamic-range-limit-property}

<pre class='propdef'>
Name: dynamic-range-limit
Value: standard | high | constrained-high | <<dynamic-range-limit-mix()>>
Initial: high
Value: standard | no-limit | constrained-high | <<dynamic-range-limit-mix()>>
Initial: no-limit
Applies to: all elements
Inherited: yes
Percentages: n/a
Expand All @@ -341,7 +341,7 @@ The 'dynamic-range-limit' property {#the-dynamic-range-limit-property}
that is displayed is the same as
media white, i.e. the CSS color ''white''.
</dd>
<dt><dfn>high</dfn>
<dt><dfn>no-limit</dfn>
<dd>
The highest peak luminance
that is displayed is much greater than
Expand Down Expand Up @@ -392,7 +392,7 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
Computed Value for 'dynamic-range-limit'
</h3>

If the specified value is ''standard'', ''constrained-high'', or ''high'', then the computed value is the specified value.
If the specified value is ''standard'', ''constrained-high'', or ''no-limit'', then the computed value is the specified value.

If the specified value is ''dynamic-range-limit-mix()'', then the computed value is determined by the following algorithm:

Expand All @@ -401,13 +401,13 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
3. Define the contributing percentages as:
* Let <var>p1_standard</var>,...,<var>pN_standard</var> be the percentages for ''standard'' in <var>v1</var>,...,<var>vN</var>
* Let <var>p1_constrained_high</var>,...,<var>pN_constrained_high</var> be the percentages for ''constrained-high'' in <var>v1</var>,...,<var>vN</var>
* Let <var>p1_high</var>,...,<var>pN_high</var> be the percentages for ''high'' in <var>v1</var>,...,<var>vN</var>
* Let <var>p1_no_limit</var>,...,<var>pN_no_limit</var> be the percentages for ''no-limit'' in <var>v1</var>,...,<var>vN</var>
4. Compute the weighted sums as:
* <var>p_standard</var>=(<var>p1_standard</var>*<var>p1</var>+...+<var>pN_standard</var>*<var>pN</var>)/100.
* <var>p_constrained_high</var>=(<var>p1_constrained_high</var>*<var>p1</var>+...+<var>pN_constrained_high</var>*<var>pN</var>)/100.
* <var>p_high</var>=(<var>p1_high</var>*<var>p1</var>+...+<var>pN_high</var>*<var>pN</var>)/100.
5. If <var>p_standard</var>, <var>p_constrained_high</var>, or <var>p_high</var> equals 100%, then the computed value is ''standard'', ''constrained-high'', or ''high'', respectively.
6. Otherwise, the computed value is ''dynamic-range-limit-mix()'', with parameters ''standard'', ''constrained-high'', and ''high'', in that order, and percentages <var>p_standard</var>, <var>p_constrained_high</var>, and <var>p_high</var>, omitting parameters with a percentage equal to 0%.
* <var>p_no_limit</var>=(<var>p1_no_limit</var>*<var>p1</var>+...+<var>pN_no_limit</var>*<var>pN</var>)/100.
5. If <var>p_standard</var>, <var>p_constrained_high</var>, or <var>p_no_limit</var> equals 100%, then the computed value is ''standard'', ''constrained-high'', or ''no-limit'', respectively.
6. Otherwise, the computed value is ''dynamic-range-limit-mix()'', with parameters ''standard'', ''constrained-high'', and ''no-limit'', in that order, and percentages <var>p_standard</var>, <var>p_constrained_high</var>, and <var>p_no_limit</var>, omitting parameters with a percentage equal to 0%.

<wpt>
computed.html
Expand All @@ -419,11 +419,11 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
dynamic-range-limit-mix(
high 10%,
dynamic-range-limit-mix(standard 25%, constrained-high 75%) 20%,
dynamic-range-limit-mix(constrained-high 10%, high 30%) 20%)
dynamic-range-limit-mix(constrained-high 10%, no-limit 30%) 20%)
</pre>
is
<pre class="lang-css">
dynamic-range-limit-mix(standard 10%, constrained-high 40%, high 50%)
dynamic-range-limit-mix(standard 10%, constrained-high 40%, no-limit 50%)
</pre>
</div>

Expand Down

0 comments on commit e35ab89

Please sign in to comment.