-
Notifications
You must be signed in to change notification settings - Fork 383
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] Import module #329
Comments
I think more natural way of doing that will be something like: <script type="module" src="my-component.js" import="my-button as custom-button">
...
<custom-button>...</custom-button>
<custom-button>...</custom-button>
... |
@rniwa Your offer, there is no import CSS styles, file |
You can import CSS via |
Yes, this is to HTML code |
BTW, there are pretty serious issues with using |
@tabatkins for realz now. |
LOL, it's uncanny that I pointed out style sharing as an issue multiple times in the past, and you guys told me But now that we're all here, it would be great to tackle this problem. |
It will be very useful to describe the import attribute in custom element.
Example:
index.html
Example:
buttons.html
User agent, automatically loading file and register element.
The text was updated successfully, but these errors were encountered: