-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add a way to share styles between elements and the global scope #1876
Labels
Comments
+1 |
1 similar comment
+1 |
/sub |
+1 |
3 tasks
Changes that will be merged for this issue are here: #2198. |
@arthurevans can you please close this when you feel this has been adequately documentated? Thanks. |
Documented, as described in #2229. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given that a user has made a
custom-style
for something like layout, for example, it's convenient to be able to use this inside an element as well. Currently, this requires code duplication.If we supported a new syntax like this:
<link rel="import" is="custom-stylesheet">
then the style could be defined once and used globally (viacusotm-style
functionality) or locally inside an element via the link's location inside an element<dom-module>
(custom-style
uses this technique now). If we do this, we should deprecate the current syntax for loading remote stylesheets in element (<link rel="import" type="css">
)The text was updated successfully, but these errors were encountered: