Re: [csswg-drafts] [cssom] Serialization of CSS declaration block returned from getComputedStyle

Given the following case, it seems browsers all have some logic to try to serialize as shorthands when possible. It's unclear to me why we want to avoid doing that for `getComputedStyle` specifically?

 http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4948
```
<!DOCTYPE html>
<p style="border:1em solid">
<p style="border:1em solid; border-right-width: 1px">
<p style="border:1em solid; border-right-width: 1px !important">
<script>
for (var p of document.querySelectorAll('p'))
  p.style.color = 'purple';
</script>
```
(check the value of the `style` attributes after the script has run.)

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

Received on Wednesday, 15 March 2017 13:03:03 UTC