- From: Simon Pieters via GitHub <sysbot+gh@w3.org>
- Date: Wed, 05 Oct 2016 08:02:13 +0000
- To: public-css-archive@w3.org
zcorpan has just created a new issue for
https://github.com/w3c/csswg-drafts:
== [cssom] getComputedStyle can return null? ==
Related to
https://github.com/w3c/csswg-drafts/issues/571
and maybe
https://github.com/w3c/csswg-drafts/issues/219
In Gecko, the following alerts null
```
<!DOCTYPE html>
<iframe style=display:none
srcdoc="<style>body{background:blue}</style>x"></iframe>
<script>
onload = () => {
alert(window[0].getComputedStyle(window[0].document.body))
}
</script>
```
In WebKit/Chromium/Edge 13 it alerts [object CSSStyleDeclaration].
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4543
cc @bzbarsky
Please view or discuss this issue at
https://github.com/w3c/csswg-drafts/issues/572 using your GitHub
account
Received on Wednesday, 5 October 2016 08:02:30 UTC