- From: Manuel Rego Casasnovas via GitHub <sysbot+gh@w3.org>
- Date: Fri, 17 Feb 2017 10:51:29 +0000
- To: public-css-archive@w3.org
And now that we're talking about this, one more question if instead
`getComputeStyle()` you use `style` directly on the element.
Something like this:
```js
document.querySelector("#flexitem").style.flex = "2";
console.log("flex (.style): " +
document.querySelector("#flexitem").style.flex);
```
The output here is the same in all the browsers I've checked Chrome,
Firefox, Safari and Edge:
```
flex (.style): 2 1 0%;
```
--
GitHub Notification of comment by mrego
Please view or discuss this issue at
https://github.com/w3c/csswg-drafts/issues/1041#issuecomment-280618790
using your GitHub account
Received on Friday, 17 February 2017 10:51:35 UTC