Skip to content

[css-typed-om] Simplifying math expressions #913

@andruud

Description

@andruud

CSS Values & Units defines a simplification process for calc() and other math functions, but CSS Typed OM defines no such process for reification. This means that per spec a specified value of e.g. calc(10px + 10px) is serialized as calc(20px) in CSSOM, but reified with the original structure in CSS Typed OM, and hence serialized as calc(10px + 10px).

According to this comment, there was an agreement, somewhere, at some point, that the simplification should not happen during serialization, but also "apply to underlying values". If so, this should be specified somewhere. Or we should explicitly require or disallow the simplification in CSS Typed OM.

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