Skip to content
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

Custom elements need an explicit "upgraded" or "resolved" flag #425

Closed
domenic opened this issue Mar 8, 2016 · 3 comments
Closed

Custom elements need an explicit "upgraded" or "resolved" flag #425

domenic opened this issue Mar 8, 2016 · 3 comments

Comments

@domenic
Copy link
Collaborator

domenic commented Mar 8, 2016

This will be used for CSS to match against.

Questions:

  • Is it "upgraded", or "resolved"? See :unresolved vs :not(:upgraded) #418.
  • Are there any concerns with setting this flag immediately upon upgrade? (That is, at nanotask time.) It seems like it would cause sync layout, which is usually not great?
@annevk
Copy link
Collaborator

annevk commented Mar 8, 2016

@jakearchibald suggested having a promise attached to this state too.

@jakearchibald
Copy link

Example use-case: hiding (opacity 0) a component until all the child components it uses in its shadow DOM upgrade

@domenic domenic closed this as completed in 2432819 Mar 8, 2016
@domenic
Copy link
Collaborator Author

domenic commented Mar 8, 2016

Settled on "defined" in 2432819 since the method is indeed named defineElement. Please see https://w3c.github.io/webcomponents/spec/custom/#dfn-element-defined and use the dfn.js popups to follow links.

If there's interest in a new API for knowing when an element (or tag name, perhaps?) becomes defined, let's file a new issue proposing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants