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 4: mix() #810

Open
CanadaHonk opened this issue Jun 3, 2023 · 5 comments
Open

CSS Values 4: mix() #810

CanadaHonk opened this issue Jun 3, 2023 · 5 comments

Comments

@CanadaHonk
Copy link

Request for Mozilla Position on an Emerging Web Specification

Other information

No engines implement or ship this yet.

@CanadaHonk
Copy link
Author

CC also @dholbert

@emilio
Copy link
Collaborator

emilio commented Jun 4, 2023

I think generally looks good. The main concern is implementation (this needs to be supported at the declaration-value level, for all properties, which can be tricky).

@zcorpan
Copy link
Member

zcorpan commented Jun 12, 2023

Are there use cases that aren't covered by calc() and color-mix()?

How does this work for shorthands?

@emilio
Copy link
Collaborator

emilio commented Jun 12, 2023

To clarify the shorthand question:

background: url(foo.png) transparent;
background-color: mix(10%; red; blue);

How should .cssText or style.background serialize, since mix() is invalid at other than a declaration level? Similarly, background: mix(...);, how does .style.backgroundColor serialize? That all needs spec text.

@polyzen
Copy link

polyzen commented May 14, 2024

Seems this can be closed: mozilla/wg-decisions#1316

mix() itself was abandoned, but may be implemented another way: w3c/csswg-drafts#9658

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Unscreened
Development

No branches or pull requests

4 participants