Re: [csswg-drafts] [web-animations-1] Web animations should read prefixed/aliased properties too (#3948)

> Is there any sorting order between JS object keys?

I'm not sure which part you're referring to but both the order in which the keys are read off the objects is specified, as is the order in which they are resolved when they overlap.

> I think we shouldn't let the aliases get more through the system, as soon as they're parsed they should be transformed to the aliased property IMO.

My concern is that will mean that code like the following won't work:

```js
const anim = elem.animate({ MozTransform: 'translate(100px)' }, 1000);
// Update target translation to 200px
anim.effect.setKeyframes({
  ...anim.effect.getKeyframes()[0],
  MozTransform: 'translate(200px)'
});
```

(since the initial `MozTransform` will be transformed into `transform` which will override the new `MozTransform`).

It also means that code like the following will stop working when we unprefix '-moz-user-select' (as just happened):

```js
const initialValue = anim.effect.getKeyframes()[0].MozUserSelect;
```

-- 
GitHub Notification of comment by birtles
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3948#issuecomment-494587492 using your GitHub account

Received on Tuesday, 21 May 2019 22:49:56 UTC