Skip to content

[css-values] Define mix() with <declaration-value> #8096

Closed

Description

@Loirooriol

https://drafts.csswg.org/css-values-4/#interpolate

mix( <percentage> ';' <start-value> ';' <end-value> )
  • <start-value>
    The value at the “start” (0%) of the interpolation range.
  • <end-value>
    The value at the “end” (100%) of the interpolation range.

It doesn't say what's the grammar for <start-value> and <end-value>.

I think they should be defined to be equivalent to <declaration-value>, or just use <declaration-value> directly.

Related: #8091

Activity

  1. cdoublev commented on Jan 30, 2023

    @cdoublev
    Collaborator

    Aside:

    I think w3c/reffy is not able to extract its production rule because its syntax does not have the usual structure <name> = rule, ie:

    mix( <percentage> ';' <start-value> ';' <end-value> )
    

    instead of:

    <mix()> = mix( <percentage> ';' <start-value> ';' <end-value> )
    

    Do you want this simplified form to be recognized by w3c/reffy?

  2. tabatkins commented on Jan 30, 2023

    @tabatkins
    Member

    I think they should be defined to be equivalent to <declaration-value>

    Yes.

    Do you want this simplified form to be recognized by w3c/reffy?

    No, we should fix the markup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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