Like I said, the problem occurs when you stamp some content and put it into the container. That is to say, the content of the component has to contain a template, the component is a templatizer, and essentially the first code snippet is run. The contents of the template, which is the content of the component, aren't styled in the same manner in both cases.
On Wednesday, February 3, 2016 at 12:47:52 AM UTC+2, Eric Bidelman wrote: > > That first selector works for me under native SD: > http://jsbin.com/xejupe/edit?html,output > > > On Tue, Feb 2, 2016 at 1:30 PM Viktor Kojouharov <[email protected] > <javascript:>> wrote: > >> Hi, >> >> I have a component that stamps a template and adds the resulting >> instances into itself, roughly like so: >> var inst = this.stamp(null); >> Polymer.dom(this.root).querySelector("#container").appendChild(inst.root); >> >> where the component itself looks something like this: >> <template> >> <div id="top-container"> >> <div id="container"></div> >> <content></content> >> </div> >> </template> >> >> >> >> Now, up until now, I've only tested things with shady dom, and the only >> way I could apply any styles to any of these stamped elements was to use >> the following: >> #top-container > ::content .something {} >> >> Upon switching to shadow dom, this selector no longer matches, but the >> following (which doesn't work in shady dom) does: >> #top-container .something {} >> >> Is this a known problem? >> >> Follow Polymer on Google+: plus.google.com/107187849809354688692 >> --- >> You received this message because you are subscribed to the Google Groups >> "Polymer" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/polymer-dev/c2fbd688-710a-411f-9269-0c4269fd0d41%40googlegroups.com >> >> <https://groups.google.com/d/msgid/polymer-dev/c2fbd688-710a-411f-9269-0c4269fd0d41%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/eb16eada-8761-4fe6-beda-50b185f7936a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
