https://drafts.csswg.org/css-variables/#typedef-custom-property-name
The production corresponds to this: it’s defined as any valid identifier that starts with two dashes.
Shouldn't it be "any valid identifier that starts with two dashes and has a length greater than equal to 3"?