Bug 246937
| Summary: | [css-values-5] Implement Weighted Average Notations | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Antoine Quint <graouts> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | karlcow, koivisto, sam, sebastianzartner, simon.fraser, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 246913 | ||
Antoine Quint
The CSS Values and Units Level 4 spec introduces a new mix() function: https://drafts.csswg.org/css-values-4/#interpolate. This is useful for blending especially in situations when we can't determine how to resolve values, for instance https://github.com/w3c/csswg-drafts/issues/2854 and our bug https://bugs.webkit.org/show_bug.cgi?id=246914.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/102188082>
Antoine Quint
The `mix()` function has been removed and there is now a group of "Weighted Average Notations" in css-values-5: https://drafts.csswg.org/css-values-5/#mixing.
- calc-mix(), for mixing <number>, <length>, <percentage>, <time>, and other dimensions representable in calc() expressions
- transform-mix(), for mixing <transform-list>s
- color-mix(), for mixing <color> values (see [css-color-5])
- cross-fade(), for mixing <image> values (see [css-images-4])
- palette-mix(), for mixing font-palette values (see [css-fonts-4])