Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Loirooriol opened this issue Nov 18, 2022 · 2 comments
Closed

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

Loirooriol opened this issue Nov 18, 2022 · 2 comments

Comments

@Loirooriol
Copy link
Contributor

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

@Loirooriol Loirooriol added the css-values-4 Current Work label Nov 18, 2022
@cdoublev
Copy link
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?

@tabatkins
Copy link
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