This should also work: `:host > *`. On Sun, Apr 10, 2016 at 9:33 PM Takayoshi Kochi <[email protected]> wrote:
> On Fri, Apr 8, 2016 at 9:57 PM, <[email protected]> wrote: > >> Thanks Takayoshi for your reply >> >> Yes, I understand. Do you have any clue how to address this issue? >> > > I'm not a frontend engineer so I'd defer the answer to other experts, but > if I had to do, I would define some CSS custom property (e.g. > --component-font-size: 20px;) > and use it (e.g. font-size { font-size: var(--component-font-size); }, or > use it with calc(). > > >> >> On Friday, April 8, 2016 at 5:36:36 AM UTC+3, Takayoshi Kochi wrote: >>> >>> Unless spec changes, ":root" only matches the document root (i.e. >>> document.documentElement or <html>) >>> and shadow root doesn't match. >>> >>> On Fri, Apr 8, 2016 at 5:46 AM, <[email protected]> wrote: >>> >>>> Hi >>>> >>>> I don't know if ":root"/"html" styling inside a template styling should >>>> work, but it is useful and makes sense for encapsulation, no? >>>> In my case, I want to use the "rem" size units, only inside the custom >>>> Polymer element, and relative to the wrapper/host font-size, but it doesn't >>>> seem to work >>>> >>>> Am I missing something? Such functionality won't be possible? >>>> >>>> Thankss >>>> >>>> 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/1c73eb5b-7b6c-41bc-8ed5-dd9bb59f78a6%40googlegroups.com >>>> <https://groups.google.com/d/msgid/polymer-dev/1c73eb5b-7b6c-41bc-8ed5-dd9bb59f78a6%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Takayoshi Kochi >>> >> 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/86a2256c-1b23-4a87-b375-8a33c62fcc92%40googlegroups.com >> <https://groups.google.com/d/msgid/polymer-dev/86a2256c-1b23-4a87-b375-8a33c62fcc92%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Takayoshi Kochi > > 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/CADP2%3DhqB%3Du9jcZAABHo8vumkATmT7w5HihLuA4dX0PFn_W0f8w%40mail.gmail.com > <https://groups.google.com/d/msgid/polymer-dev/CADP2%3DhqB%3Du9jcZAABHo8vumkATmT7w5HihLuA4dX0PFn_W0f8w%40mail.gmail.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/CA%2BrMWZi%2BSBhVi5Sqt-zZX1RQSbV2AdPebRGFsfOT0LpacL3vKg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
