[css-houdini-drafts] [css-animation-worklet] IDL for AnimationWorkletGlobalScope is invalid (#907)

bzbarsky has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-animation-worklet] IDL for AnimationWorkletGlobalScope is invalid ==
The IDL says:

```
[ Exposed=AnimationWorklet, Global=AnimationWorklet ]
interface AnimationWorkletGlobalScope : WorkletGlobalScope {
```
but the definition of `WorkletGlobalScope` at https://drafts.css-houdini.org/worklets/#the-global-scope says:
```
[Exposed=Worklet]
interface WorkletGlobalScope
```

So `WorkeltGlobalScope` is only exposed in "Worklet" scopes, `AnimationWorkletGlobalScope` is _not_ a "Worklet" scope, and the IDL spec says:

> If an interface X inherits from another interface Y then the exposure set of X must be a subset of the exposure set of Y.

In this case that condition is violated.

You probably want `Global=(AnimationWorklet, Worklet)` here.

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/907 using your GitHub account

Received on Thursday, 27 June 2019 00:21:59 UTC