Re: [css-houdini-drafts] CSS operations static or not static?

> They're scoped to the window

Specifically the `window`? (not the `document`)  It's a subtle 
difference; note that in most cases [there's a 1:1 relationship 
between the 
two.](https://html.spec.whatwg.org/multipage/browsers.html#windows)


All things being equal, bz tells me it's actually better to hang 
things off of `document` as opposed to `window` *from an interop 
perspective*, because Chrome & Safari are non-conforming on the 
lifetime of `window` objects.  (Specifically: Chrome/Safari *do not* 
replace the `window` object when `document.open()` is called, but the 
spec says they should. Firefox/Edge are spec-conforming on this point.
 I believe there's no such confusion about the lifetime of `document` 
objects, though.)

-- 
GitHub Notification of comment by dholbert
Please view or discuss this issue at 
https://github.com/w3c/css-houdini-drafts/issues/216#issuecomment-224973784
 using your GitHub account

Received on Thursday, 9 June 2016 17:50:19 UTC