Skip to content

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

Closed
@weinig

Description

@weinig

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 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 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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions