W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

[csswg-drafts] [css-images-4] Include gradients in the cross-fade() notation (#5860)

From: m6o via GitHub <sysbot+gh@w3.org>
Date: Tue, 12 Jan 2021 17:08:02 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-784421586-1610471281-sysbot+gh@w3.org>
m6o has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-images-4] Include gradients in the cross-fade() notation ==
Currently, the cross-fade() notation allows including colors (https://drafts.csswg.org/css-images-4/#cross-fade-function).

Also allow including gradients.

`cross-fade() = cross-fade( <cf-image># )`
`<cf-image> = <percentage>? && [ <image> | <gradient> | <color> ]`

If a `<gradient>` is provided, it represents a gradient image with “automatic” dimensions (it doesn’t participate in the sizing of the result image at all; see details in the sizing details below).

This allows images to be cross-faded to gradients, but also allows mixing gradients of different functions. 

The cross-fade() notation may then be used for interpolating gradients which do not conform to the restrictions currently specified for interpolating gradients (https://drafts.csswg.org/css-images-4/#interpolating-gradients). Ideally these transitions are translated to a cross-fade internally.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5860 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 12 January 2021 17:08:04 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:25 UTC