Re: [csswg-drafts] [cssom] We may not want .setProperty() to change the order if it's setting an identical value to an existing declaration

I think a middle ground can be found here. You are allowed not to reorder the properties if there are no properties defined after the one you just set that would override yourself. 
```
elem.style.marginTop = "0px";
elem.style.marginBlockStart = "100px";
...
elem.style.marginTop = "0px"; // fires a style attribute update
```
but
```
elem.style.marginTop = "0px";
elem.style.paddingBlockStart = "100px";
...
elem.style.marginTop = "0px"; // doesn't fires a style attribute update
```


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

Received on Thursday, 10 May 2018 22:48:18 UTC