W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2017

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

From: Manuel Rego Casasnovas via GitHub <sysbot+gh@w3.org>
Date: Tue, 14 Feb 2017 13:15:54 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-279704031-1487078153-sysbot+gh@w3.org>
We've similar issues in CSS Grid Layout spec.
This was an old mail to `www-style`: 
https://lists.w3.org/Archives/Public/www-style/2015Jul/0242.html

A very basic example:
```js
myGrid.style.grid = "100px / 50px";
console.log("style: " + myGrid.style.grid);
console.log("computedStyle: " + getComputedStyle(myGrid).grid);
```

The output right now in Chrome is:
```
style:
computedStyle: 100px / 50px / none / row / auto / auto / 0px / 0px
```

And in Firefox:
```
style: 100px / 50px;
computedStyle:
```



-- 
GitHub Notification of comment by mrego
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/1033#issuecomment-279704031
 using your GitHub account
Received on Tuesday, 14 February 2017 13:16:01 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:29 UTC