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

I got it. I misunderstood the description of CSSOM spec.

It says, we have to convert names between CSS property name and IDL attribute identifier.
So if we want to handle a CSS property `-webkit-transform`, we need to define a corresponding IDL attribute `webkitTransform`. And algorithms of conversion are [CSS property to IDL attribute](https://drafts.csswg.org/cssom/#css-property-to-idl-attribute) and [IDL attribute to CSS property](https://drafts.csswg.org/cssom/#idl-attribute-to-css-property).

Thus I think CSSOM does not mismatch with current Web IDL spec. So let me close this issue.

@csnardi I agree `_-foo-bar` isn't matched by the regex.

-- 
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-395851898

Received on Friday, 8 June 2018 18:40:51 UTC