Skip to content

[css-values-4] Definition of a math function #6802

Description

@cdoublev

A calc() function contains a single calculation, which is a sequence of values [...]

The min() or max() functions contain one or more comma-separated calculations [...]

To parse a calculation, given a calculation values:

[previous steps...]
6. Return the result of simplifying a calculation tree from values.

To simplify a calculation tree root:

[previous steps...]
5. If root is a Min or Max node [...]

If calc(), min(), and other functions are not calculations that contain calculation values, instead of being something that contains a calculation, I do not see how the calculation tree can be identified as a Min or Max node in step 5 of the procedure to simplify a calculation tree.

EDIT (answer): [for] any other math function [than calc()], the internal representation is an operator node with the same name as the function (11.10 - Internal Representation), then internal representations of math functions are eagerly simplified (11.10.1 - Simplification).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions