Skip to content

[css-values-4] How to interpolate min/max/clamp? #4082

@xiaochengh

Description

@xiaochengh

For interpolation, https://drafts.csswg.org/css-values-4/#combining-values says:

These operations are only defined on computed values.

While https://drafts.csswg.org/css-values-4/#calc-computed-value says:

The computed value of a min(), max(), or clamp() function is the comma-separated list of expressions, with each expression having all its component computed.

So their computed values are not numbers, and there's no straightforward way to interpolate them. Should this be explicitly specified?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions