🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

[css-values-4] Allow omitting <declaration-value> in mix() #8556

Closed

Description

@cdoublev

If I am not mistaken, mix() is valid for custom properties, whose initial value is the guaranteed-invalid value, ie. an omitted value.

A mix() notation is invalid if either of its <declaration-value>s are invalid when interpreted as a whole value for the property the function is used in, or if the property using it is not animatable.

Should mix() syntax allow omitting <declaration-value> ...

- <mix()> = mix( <percentage> ';' <declaration-value> ';' <declaration-value> )
+ <mix()> = mix( <percentage> ';' <declaration-value>? ';' <declaration-value>? )

... to accept inputs like --custom: mix(50%; ; on)?

Activity

  1. Loirooriol commented on Mar 10, 2023

    @Loirooriol
    Contributor

    In fact mix(50%; ; on) is using a space so that's already a <declaration-value> I think? Omitting it would allow mix(50%;; on) I guess.

  2. tabatkins commented on Mar 10, 2023

    @tabatkins
    Member

    Yes, passing a space does indeed satisfy <declaration-value>, but I should indeed go ahead and give it ? since that's also a valid custom property value.

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