- From: Boris Zbarsky via GitHub <sysbot+gh@w3.org>
- Date: Thu, 27 Jun 2019 00:12:26 +0000
- To: public-houdini-archive@w3.org
bzbarsky has just created a new issue for https://github.com/w3c/css-houdini-drafts: == [css-animation-worklet] IDL for StatelessAnimator doesn't make sense == I was reading through https://drafts.css-houdini.org/css-animationworklet-1/ and the IDL global/exposure bits don't make any sense to me. For example, the draft has: ``` [Exposed=AnimationWorklet, Global=AnimationWorklet, Constructor (optional any options )] interface StatelessAnimator { }; ``` This defines an object which is supposed to be a global (hence `Global=AnimationWorklet`) but has a `Constructor`, so you can create multiple of them in a given global? The IDL spec explicitly says for `[Global]`: > The [Global] extended attribute must not be used on an interface that can have more than one object implementing it in the same Realm. which means it's not really compatible with `[Constructor]`. I filed https://github.com/heycam/webidl/issues/744 to make that very explicit. Anyway, is this object constructible or a global? It can't really be both. Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/906 using your GitHub account
Received on Thursday, 27 June 2019 00:12:27 UTC