Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

[web-animations-1] Update WebIDL definition(s) to use new mixin syntax #205

Closed
1 task
tobie opened this issue Nov 3, 2017 · 2 comments
Closed
1 task

Comments

@tobie
Copy link
Member

tobie commented Nov 3, 2017

Hi all!

WebIDL recently introduced dedicated syntax for mixins.

This syntax replaces the [NoInterfaceObject] extended attribute and implements statement which have been deprecated (except for a few legacy uses cases explicitely mentioned in the spec).

You can read more about it here.

In most cases, the changes should be relatively straightforward. The now deprecated:

interface Foo { };

[NoInterfaceObject]  // (Mostly) DEPRECATED
interface Bar { };
Foo implementes Bar; // DEPRECATED

should just be rewritten as:

interface Foo { };

interface mixin Bar { };
Foo includes Bar;

Additonaly, a section on when to use partials and mixins has been added to the spec. It's short and might be worth a read.

It seems the following interfaces in the Web Animations spec are impacted by this change:

  • Animatable

We're sorry for the inconvenience this causes, but our hope is that this ultimately makes things simpler and clearer for everybody.

As always, please feel free to reach out if you have any questions.

Thanks!


Tracked in: whatwg/webidl#472 | Original pull-request: whatwg/webidl#433

@tobie tobie mentioned this issue Nov 3, 2017
4 tasks
@birtles
Copy link
Contributor

birtles commented Nov 6, 2017

This is blocked on Bikeshed support (which is presumably blocked on widlparser support).

@birtles birtles changed the title Update WebIDL definition(s) to use new mixin syntax [web-animations-1] Update WebIDL definition(s) to use new mixin syntax Dec 5, 2017
@birtles
Copy link
Contributor

birtles commented Dec 5, 2017

This issue was moved to w3c/csswg-drafts#2076

@birtles birtles closed this as completed Dec 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants