- From: Martin <sysbot+gh@w3.org>
- Date: Sun, 14 Oct 2018 13:35:43 +0000
- To: public-css-archive@w3.org
Had no idea that you can drop all the commas in those css functions. Wow, that feels weird and vague. I like the idea of using single-letter keywords for placeholders as they match the functions' names. It creates a clear mapping. It only gets a bit weird when it comes to the alpha components on `lab`/`lch` as we don't have `laba`/`lcha`. What about keywords and +/-? `hsl(h s 50% from red)`, set lightness to 50% from the color red `hsl(+20deg s l from green)`, rotate hue by +20deg from the color green `hsl(-15deg +10% -20% from lightblue)`, rotate hue by -15deg, add 10% saturation, subtract 20% lightness from the color lightblue Or: `hsl(red to h s 30%)`, set red to lightness of 30% `hsl(darkblue to 0deg s +30%)`, set darkblue to hue of 0deg and add 30% lightness I realise it might get confusing/conflict with absolute negative values. I think hsl can have negative hue values. Perhaps there are ways to lean on `calc` instead as that is meant for number tweaking? Given the placeholders: `hsl(calc(h + 5deg) calc(s + 10%) calc(l - 10%) from darkbrown)` `hsl(calc(hue + 5deg) calc(saturation + 10%) calc(lightness - 10%) from darkbrown)` `hsl(calc(hue - 20deg) s l from blue)` -- GitHub Notification of comment by Martin-Pitt Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3187#issuecomment-429626976 using your GitHub account
Received on Sunday, 14 October 2018 13:35:45 UTC