javascript - How to select extended custom elements -
I have created a custom element after this and now extended items no longer works CSS However the selector.
Before:
& lt; Style & gt; Expanded items {...} & lt; / Style & gt; & Lt; & Lt; Expand / Expanded-item & gt; after:
& lt; Style & gt; ??? {...} & lt; / Style & gt; & Lt; Div = "extended-item" & gt; & Lt; / Div & gt; I tried div: extended object but it does not work. Any ideas?
[edit]
My example is extended items
> < Link rel = "import" href = "../ libs / polymer / polymer.html" & gt; & Lt; Polymer-element name = "extended-object" noscript extended = "div" & gt; & Lt; Templates & gt; & Lt; Style & gt; : Host {...} & lt; / Style & gt; ... & lt; / Template & gt; & Lt; / Polymer element & gt; Note that by using Noscript and Extended , give me & lt; Extended-item & gt; syntax directly, but only other & lt; Div = "extended-item" & gt; Syntax which does not seem to work with selectors is equivalent to registering the element in such a manner, but will allow me to use syntax, thus the selector will be allowed to work:
& lt; Link rel = "import" href = "../ libs / polymer / polymer.html" & gt; & Lt; Name of the mode-element = "expanded-object" & gt; & Lt; Templates & gt; & Lt; Style & gt; : Host {...} & lt; / Style & gt; ... & lt; / Template & gt; & Lt; Script & gt; (Function () (polymers ('expanded object', {expansion: 'div'});}) () gt; & polynomial element & gt;
It may be better as a comment than a reply, but I can not comment yet. You say that extended items does not work as a CSS selector - have you tried the attribute selector [attr = value] ? In your case maybe Div [is = "extended-item"] {/ * styling * /}
Comments
Post a Comment