[csswg-drafts] [css-animations-1] Invalid `data-dfn-type="function"` for `AnimationEvent(type, animationEventInitDict)` (#7424)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-animations-1] Invalid `data-dfn-type="function"` for `AnimationEvent(type, animationEventInitDict)` ==
There is the following definition in [CSS Animations 1](https://drafts.csswg.org/css-animations-1/#funcdef-animationevent):

> `AnimationEvent(type, animationEventInitDict)` is an event constructor.

`AnimationEvent` is a WebIDL interface but the corresponding HTML markup has `dfn class="css" data-dfn-type="function"`, which means that it is extracted by [`w3c/reffy`](https://github.com/w3c/webref/blob/13e807f22fea171c90eeec0414722b91838cccf2/ed/css/css-animations.json#L159) as a CSS production named `<AnimationEvent(type, animationEventInitDict)>`.

I'm not sure how it should be fixed. Maybe with:

```diff
- <dfn>AnimationEvent(type, animationEventInitDict)</dfn> is an <a>event constructor</a>.
+ <dfn dfn-type="constructor">AnimationEvent(type, animationEventInitDict)</dfn> is an <a>event constructor</a>.
```

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 28 June 2022 06:41:00 UTC