Re: [csswg-drafts] [css-color-6] add color functions for some (or all) compositing/blending operations (#8431)

The CSS Working Group just discussed `[css-color-6] add color functions for some (or all) compositing/blending operations`, and agreed to the following:

* `RESOLVED: color-layers([<blend-mode>, ]? <color>#)`
* `RESOLVED: function name is "color-layers()"`

<details><summary>The full IRC log of that discussion</summary>
&lt;ChrisL> q+<br>
&lt;Rossen4> ack ChrisL<br>
&lt;matthieud> ChrisL:  you want to composite color1 on color2<br>
&lt;matthieud> ntim: currently web devs need background gradient to composite one color on top of the other.<br>
&lt;TabAtkins> +1 to the functionality too, seems easy and moderately useful<br>
&lt;matthieud> ChrisL: proposition is using color-layer<br>
&lt;fantasai> color-layer([&lt;blend-mode>, ]? &lt;color>#)<br>
&lt;astearns> slight preference for color-over, as I associate *-layer with stacks of things<br>
&lt;matthieud> ntim:  either color-over() or color-layer() and inside the function you have a comma separated list of colors and optional blend-mode<br>
&lt;miriam> layer-colors() reads better to me<br>
&lt;matthieud> ChrisL: optional blend-mode preference, if not specified you get the default<br>
&lt;matthieud> fantasai: we agree on the arguments of the function [&lt;blend-mode>, ]? &lt;color>#<br>
&lt;Rossen4> ack miriam<br>
&lt;ChrisL> q+<br>
&lt;ntim> q+<br>
&lt;matthieud> miriam: color-layer read weirds because it's not a single layer<br>
&lt;matthieud> miriam: proposal for layer-colors() or color-over()<br>
&lt;fantasai> color-layers?<br>
&lt;Rossen4> ack ChrisL<br>
&lt;Rossen4> ack ntim<br>
&lt;matthieud> ChrisL:  all color functions start with color-*<br>
&lt;ChrisL> ntim++<br>
&lt;matthieud> ntim:  consistency with color-mix()<br>
&lt;miriam> color-stack(), color-over()…<br>
&lt;matthieud> ChrisL: color-stack() sounds like stacking context, weird<br>
&lt;fantasai> POLL: A) color-over B) color-layer C) color-stack<br>
&lt;fantasai> D) color-layers<br>
&lt;nicole> D<br>
&lt;fantasai> not A<br>
&lt;astearns> A<br>
&lt;matthieud> D<br>
&lt;ntim> A or B (no strong opinion)<br>
&lt;Rossen4> D B<br>
&lt;schenney> B<br>
&lt;ChrisL> D<br>
&lt;TabAtkins> d<br>
&lt;miriam> A C or D<br>
&lt;kbabbitt> A > D > B> C<br>
&lt;schenney> Change: D<br>
&lt;ethanjv> D > A<br>
&lt;masonf> someone needs to write some code to see which option won.<br>
&lt;nicole> haha<br>
&lt;matthieud> Rossen4:  based on first choice color-layers() win<br>
&lt;ChrisL> \0/<br>
&lt;fantasai> RESOLVED: color-layers([&lt;blend-mode>, ]? &lt;color>#)<br>
&lt;matthieud> RESOLVED: function name is "color-layers()"<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8431#issuecomment-2274558595 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 8 August 2024 00:01:47 UTC