8000 [css-values-4] mix() can not represent composition · Issue #9342 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-values-4] mix() can not represent composition #9342

@andruud

Description

@andruud

For example, this requires a mix between three values:

  @keyframes anim {
    from {
      offset-distance: min(10px, 10%);
    }
    to {
      animation-composition: add;
      offset-distance: min(20px, 20%);
    }
  }
  div {
    offset-distance: min(30px, 30%);
    animation: anim 10s -1s linear paused;
  }

The computed value should be something like calc(min(30px, 30%) * 0.1 + min(10px, 10%) * 0.9 + min(20px, 20%) * 0.1), which mix() isn't able to represent.

See also #9341.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0