Re: [w3ctag/design-reviews] EyeDropper API (#587)

> > sRGBHex
> 
> Fascinating, this is an edge case the [design principles casing rules](https://w3ctag.github.io/design-principles/#casing-rules) do not anticipate. I wonder whether `sRGBHex` or `srgbHex` is better... probably whatever is decided on here should be documented in the design principles so that future APIs align with this.

Hey @domenic  Domenic,

I don't think it's "that much" of an edge case, it seems to be anticipated in the third row of the table:

<img width="673" alt="Screen Shot 2021-06-01 at 11 36 39 PM" src="https://user-images.githubusercontent.com/42009457/120435443-932e5380-c332-11eb-86fb-81535fffedef.png">

So the form of **`sRGBHex`** appears to me to be the style/form defined in this table-row rule on initialisms.

**THAT SAID _(implying that tangential opinion follows)_:** for me personally, for camelCaseInitialisms, I've always preferred the first word after an initial to be lowercase, such as **`sRGBhex`** or something like **`sRGBtoLinear()`**  and not **`sRGBHex`**  but I suppose that's rabbit-stew if these rules are already set...



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/587#issuecomment-852790008

Received on Wednesday, 2 June 2021 06:57:08 UTC