Re: [csswg-drafts] [css-logical-1] [css-cascade-3] The all longhand probably shouldn't set logical properties.

Note that, if you need to rely on the order of an iteration, you should not use [for-in loops](http://www.ecma-international.org/ecma-262/8.0/#sec-enumerate-object-properties):

> The mechanics and order of enumerating the properties is not specified

Instead, you should use something like `for (prop of Reflect.ownKeys(props))`, because the order of [OrdinaryOwnPropertyKeys](http://www.ecma-international.org/ecma-262/8.0/#sec-ordinaryownpropertykeys) is explicitly defined.

Other than this, I think the result would always be as expected if you used `removeProperty` just before `setProperty`. Would it be backwards-compatible if CSSOM  automatically did this?

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

Received on Monday, 23 October 2017 18:12:00 UTC