w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.

Home Page:https://w3c.github.io/webcodecs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VideoPixelFormat enum values do not follow casing rule guidelines

domenic opened this issue · comments

That is, per https://w3ctag.github.io/design-principles/#casing-rules, you should have things like "rgba" instead of "RGBA".

I suspect this is too late to change. (Is that right?) If so, then adding a note explaining that this is a historical mistake to the spec would be helpful.

Yeah, at least 3 UAs already implemented the spec and many websites use it.
We can't rename these enums simply because of non conformity to casing rules.

As for the note about a historical mistake, who would be the target audience for such a note in the spec? I think neither web developers nor browser implementers care about the origins of this naming.

As for the note about a historical mistake, who would be the target audience for such a note in the spec?

People performing review, such as myself in my Blink API owner role. Or the W3C TAG. I've also heard many complaints from web developers about inconsistent casing across various web specs (although not yet this one in particular), so I suspect they would find it helpful as well.