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

> That doesn't happen on the OM because you can keep the getters. I guess it's too late for making `getKeyframes()` return some sort of interface :)

I'd rather not if we can avoid it but it's probably not impossible.

> I don't recall what shorthands do, I guess they don't get expanded on `getKeyframes()`?

Right, they don't get expanded. (For keyframes from CSS animations we actually build the keyframes from the computed values so we don't get shorthands for them, but for Web Animations we basically preserve the keyframes as passed-in.)

> And, fwiw, it may be ok not to fix this, if the "longhand that is later changed to be a shorthand" works well

Right, the longhand → shorthand change works fine. The property → alias change doesn't. Assuming the list of prefixed properties without an unprefixed version is steadily shrinking and is expected to reach ~0 in the nearish future then that might be ok. In fact it would add an extra incentive to spec unprefixed versions of such properties. I'm not sure what that list currently looks like, however.

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

Received on Wednesday, 22 May 2019 01:30:16 UTC