Re: [heycam/webidl] identifier needs to allow a leading hyphen (#564)

Or put another way, what CSSOM specs is that if you have a CSS property named "-foo-bar" you would create this webidl:

    [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString _-foo-bar;

which is perfectly valid webidl syntax and leads to an identifier with the value "-foo-bar", per this bit in <https://heycam.github.io/webidl/#idl-names>:

> For all of these constructs, the identifier is the value of the identifier token with any leading U+005F LOW LINE ("_") character (underscore) removed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/564#issuecomment-395828460

Received on Friday, 8 June 2018 17:19:47 UTC