{"action":"created","issue":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/1696","repository_url":"https://api.github.com/repos/tmpvar/jsdom","labels_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1696/labels{/name}","comments_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1696/comments","events_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1696/events","html_url":"https://github.com/tmpvar/jsdom/issues/1696","id":197928005,"number":1696,"title":"Cascading of inline styles","user":{"login":"lehni","id":213275,"avatar_url":"https://avatars.githubusercontent.com/u/213275?v=3","gravatar_id":"","url":"https://api.github.com/users/lehni","html_url":"https://github.com/lehni","followers_url":"https://api.github.com/users/lehni/followers","following_url":"https://api.github.com/users/lehni/following{/other_user}","gists_url":"https://api.github.com/users/lehni/gists{/gist_id}","starred_url":"https://api.github.com/users/lehni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehni/subscriptions","organizations_url":"https://api.github.com/users/lehni/orgs","repos_url":"https://api.github.com/users/lehni/repos","events_url":"https://api.github.com/users/lehni/events{/privacy}","received_events_url":"https://api.github.com/users/lehni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-28T22:53:36Z","updated_at":"2016-12-31T15:38:25Z","closed_at":null,"body":"Am I doing something wrong, or is JSDOM completely lacking support for cascading inline styles?\r\n\r\nA simple example:\r\n\r\n```js\r\nvar doc = jsdom.jsdom('<html><body><div style=\"color: red;\"><div id=\"nested\"></div></div></body></html>');\r\nvar win = doc.defaultView;\r\nvar el = doc.getElementById('nested');\r\nconsole.log(win.getComputedStyle(el, ''));\r\n```\r\n\r\nOutput:\r\n```\r\nCSSStyleDeclaration {\r\n  '0': 'display',\r\n  _values: { display: 'block' },\r\n  _importants: { display: '' },\r\n  _length: 1,\r\n  _onChange: [Function] }\r\n```\r\n\r\nAs reference, here the browser's behavior for the same example:\r\n\r\nhttps://jsfiddle.net/qxu1v1zc/"},"comment":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/comments/269870159","html_url":"https://github.com/tmpvar/jsdom/issues/1696#issuecomment-269870159","issue_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1696","id":269870159,"user":{"login":"Sebmaster","id":347870,"avatar_url":"https://avatars.githubusercontent.com/u/347870?v=3","gravatar_id":"","url":"https://api.github.com/users/Sebmaster","html_url":"https://github.com/Sebmaster","followers_url":"https://api.github.com/users/Sebmaster/followers","following_url":"https://api.github.com/users/Sebmaster/following{/other_user}","gists_url":"https://api.github.com/users/Sebmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Sebmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sebmaster/subscriptions","organizations_url":"https://api.github.com/users/Sebmaster/orgs","repos_url":"https://api.github.com/users/Sebmaster/repos","events_url":"https://api.github.com/users/Sebmaster/events{/privacy}","received_events_url":"https://api.github.com/users/Sebmaster/received_events","type":"User","site_admin":false},"created_at":"2016-12-31T15:38:25Z","updated_at":"2016-12-31T15:38:25Z","body":"> is JSDOM completely lacking support for cascading inline styles?\r\n\r\nThat is true afaik. No one has written anything to properly deal with cascading yet."}}
{"actor":{"display_login":"Sebmaster"}}