Skip to content

Commit a248b72

Browse files
committed
[css-color-5] Space for second color modification proposal per Toronto minutes
1 parent 6ce67d8 commit a248b72

File tree

1 file changed

+32
-7
lines changed

1 file changed

+32
-7
lines changed

css-color-5/Overview.bs

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Introduction {#intro}
5050
This module adds three functions:
5151
''color-mix'',
5252
''color-contrast'',
53-
''color-adjust''
53+
and [[#colormodify|a way to modify colors]].
5454

5555
The perceptually uniform ``lch()`` colorspace
5656
is used for mixing by default,
@@ -59,10 +59,6 @@ Introduction {#intro}
5959
However, other colorspaces can be specified,
6060
including ``hsl()`` or ``srgb`` if desired.
6161

62-
Issue(3187): there are two proposals for color modification (<a href="https://github.com/w3c/csswg-drafts/issues/3187#issuecomment-499126198">proposal 1</a>, <a href="https://gist.github.com/una/edcfa0d3600e0b89b2ebf266bf549721">proposal 2</a>).
63-
The CSS WG expects that the best aspects of each
64-
will be chosen to produce a single eventual solution.
65-
6662
Mixing colors: the ''color-mix'' function {#colormix}
6763
=====================================================
6864

@@ -176,8 +172,33 @@ Selecting the most contrasting color: the ''color-contrast()'' function {#colorc
176172

177173
</div>
178174

175+
Modifying colors {#colormodify}
176+
===============================
177+
178+
Note: There are currently two proposals for modifying colors:
179+
''color-adjust'' and [[#extended-color|Extending color() to add modifiers]].
180+
181+
Issue(3187): there are two proposals for color modification (<a href="https://github.com/w3c/csswg-drafts/issues/3187#issuecomment-499126198">proposal 1</a>, <a href="https://gist.github.com/una/edcfa0d3600e0b89b2ebf266bf549721">proposal 2</a>).
182+
The CSS WG expects that the best aspects of each
183+
will be chosen to produce a single eventual solution.
184+
185+
<!--
186+
From minutes of Toronto f2f
187+
https://lists.w3.org/Archives/Public/www-style/2019Jul/0008.html
188+
189+
- RESOLVED: Put all the proposals into css-color-5, ChrisL and
190+
future Una as editors
191+
- RESOLVED: Rename to put 'color' first, adjust-color -> color-mod()
192+
- RESOLVED: Add color-mix(), try to align syntax with cross-fade()
193+
- RESOLVED: Put both color adjustment proposals into css-color-5,
194+
with keywords instead of underscores for Lea's proposal
195+
- Proposal A: https://gist.github.com/una/edcfa0d3600e0b89b2ebf266bf549721
196+
- Proposal B: https://github.com/w3c/csswg-drafts/issues/3187
197+
- RESOLVED: Add Lea Verou as editor of css-color-5
198+
-->
199+
179200
Adjusting colors: the ''color-adjust'' function {#coloradjust}
180-
=====================================================
201+
--------------------------------------------------------------
181202

182203
This function takes one <<color>> specification
183204
and returns the result of adjusting that color,
@@ -208,4 +229,8 @@ Adjusting colors: the ''color-adjust'' function {#coloradjust}
208229
* which is rgb(57.58%, 32.47%, 3.82%) <span class="swatch darkperu"> </span>
209230
</div>
210231

211-
<img src="images/adjust_red_lightness30.png" alt="Result of adjust-color(red, lightness(30%)" />
232+
<img src="images/adjust_red_lightness30.png" alt="Result of adjust-color(red, lightness(30%)" />
233+
234+
Extending ''color()'' to add modifiers {#extended-color}
235+
--------------------------------------------------------
236+

0 commit comments

Comments
 (0)