[csswg-drafts] [css-color-hdr] Clarification on the grammar / spec text for `dynamic-range-limit-mix()` (#11672)

weinig has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-hdr] Clarification on the grammar / spec text for `dynamic-range-limit-mix()` ==
CSS Color HDR specifies the grammar for `dynamic-range-limit-mix()` is:

```
dynamic-range-limit-mix() = dynamic-range-limit-mix( [ <ident> && <percentage [0,100]> ]#)
```
(https://drafts.csswg.org/css-color-hdr/#dynamic-range-limit-mix)

The examples however make it seems like the actual grammar should be something more like:

```
dynamic-range-limit-mix() = dynamic-range-limit-mix( [ <'dynamic-range-limit'> && <percentage [0,100]> ]#)
```

Perhaps with a more specific [value multiplier](https://drafts.csswg.org/css-values-4/#component-multipliers) than `#`? I don't see any examples in the spec or tests that less than two, so maybe `#{2,}`?

The spec text also seems incorrect. It currently states:

> This function takes two [dynamic-range-limit](https://drafts.csswg.org/css-color-hdr/#propdef-dynamic-range-limit) values, converts them internally to a value in stops above media white, and alters the display to the result of mixing them by the specified amount. The actual calculated result is not exposed.

The examples all show using three, so at least the "two" there should be updated.

cc (@svgeesus, @ccameron-chromium)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11672 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 7 February 2025 16:59:03 UTC