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

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