-
Notifications
You must be signed in to change notification settings - Fork 142
CSS operations static or not static? #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Whoops, that's just a mistake - all methods on the |
Awesome, thanks for the clarification! I'll submit a tiny pull request. |
See @tabatkins' comment at [1]. [1]: w3c#216 (comment)
@tabatkins Wait, so if these methods are I suspect/believe the scoping is why these methods were on the |
Previous discussion: #50 We moved the properties from Document to Window scope deliberately, it seems. I think Window is the correct scoping? So I guess the question is whether CSS is Window or globally scoped. |
Hmm, the discussion in #50 asserts that "CSS is Window scoped", but I don't think that's backed up by any spec at this point. The two existing specs that I'm aware of which put stuff in the
...and the functions that they added ( (BUT, I suppose So I think I agree that CSS needs to become Window (or document?) specific, if it's not already, in order for |
They're scoped to the window; I assumed that was obvious, but we may very well be missing some text that makes that explicit in CSSOM. |
I'll open a separate issue back in css to fix this in CSSOM. |
Specifically the All things being equal, bz tells me it's actually better to hang things off of |
I don't have a strong opinion. |
The |
So if this is going to be on CSS, how does a script in a document register a property for the document inside one of its iframes? Does iframe.contentWindow.CSS.registerProperty work for CSS being an interface but not a property on Window? |
Yes. Am I missing something that makes that question interesting? It seems like the obvious answer. |
Does the way |
A static method is just one defined on the interface object, rather than on instances of the interface. Methods thus still have a perfectly reasonable Do we need to do anything about |
On Wed, Jun 8, 2016 at 4:04 PM, Jonathan Chan jchan@mozilla.com wrote:
The text was updated successfully, but these errors were encountered: