W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2016

Re: [csswg-drafts] [css-color] Lab and LCH pseudo functions differ too much from others

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 06 Jul 2016 21:01:18 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-230905270-1467838876-sysbot+gh@w3.org>
Omitting commas is intentional; I'm proposing in 
<https://github.com/w3c/csswg-drafts/issues/266#issuecomment-230898208>
 we remove all of them now (including the one separating alpha from 
the other args). Functions are just named chunks of CSS syntax, and we
 use commas in CSS syntax for very specific reasons, not just as a 
value separator (whitespace already accomplishes that).  We've got a 
bunch of legacy functions, but I'm trying my best to fix things where 
I can when we introduce new stuff.

Types should indeed be corrected; I opened #278 just a little bit ago 
before I saw this issue.

There are no legacy issues for `<hue>`, only for `hsl()`.  Hue in 
lch() should just be an angle, simple as that.

The lab() and lch() functions are different enough that unifying them 
isn't a good idea, even if you can grammatically distinguish them; 
only the first argument is shared between the two.  Giving them 
distinct names is a good thing.

See #275 for a proposal to just fold rgb() into the color() function, 
which provides the "optional alpha" behavior so you can ignore 
rgb()/rgba() as legacy syntax.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/272#issuecomment-230905270 
using your GitHub account
Received on Wednesday, 6 July 2016 21:01:29 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:00 UTC