- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 26 Feb 2018 10:22:53 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 26 February 2018 18:23:45 UTC
Except in Edge, `style.sheet` initialization is queued similar to scripts. I.e., the following logs null in the Live DOM Viewer:
```html
<script>
var s1 = document.createElement("style"); s1.textContent = "body { background:lime }";
var s2 = document.createElement("script"); s2.textContent = "w(s1.sheet)";
var df = document.createDocumentFragment(); df.appendChild(s2); df.appendChild(s1);
document.head.appendChild(df);
</script>
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/576#issuecomment-368598457
Received on Monday, 26 February 2018 18:23:45 UTC