Re: [w3c/webcomponents] > ""::slotted() should full support complex selector"" has came up multiple time and always get closed without any solution. (#881)

> It doesn't because one; creating multiple custom component for what is actually one get us back to being not so reusable therefore not a component and two;

I don't follow what you mean by this. Why would adding a shadow root to `ui-ribbon-section` make it not re-usable? Could you elaborate?

> We can't make a component inside another from HTML only, we have to pass by the JavaScript of each node level to make them instantiate there own component (or more so sub-component) which also mean they have to know them which prevent dynamic uses and the worst for me

I don't follow this either. It's true that we can't define a custom element or shadow root purely in HTML but how does that relate to not being able to attach a shadow root on `ui-ribbon-section`?

> no being able to make the "nested components" by HTML means we can't use those components in server-side templating engine like Django or Jinja2 (for pythonic example), only JavaScript based ones like mustache could do it and only by making even more code!!

The lack of server side rendering seems like an orthogonal issue. As things stand, shadow DOM doesn't really work with server side rendering because nothing in shadow root could be constructed in the server side. That issue is tackled in https://github.com/whatwg/dom/issues/831.

> Do we really need to start making "sub-components" jargon or should we just be able to style everything on the way DOWN the trees?!

Could you clarify what you mean by "sub-components" jargon? If you meant that having to create every child element that's relevant to your custom element / component also a custom element / component, then yes, that's how things are designed right now.

> If there is such a big problem for others that i can't think off, there also can be an attribute to activate/deactivate the childs access..

This isn't really an issue for other web developers per se. Allowing styling of arbitrary descendent elements of a slotted content would result in a massive hit in browser performance and other implementation challenges that I'm not going into details here.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/881#issuecomment-632971116

Received on Saturday, 23 May 2020 02:18:47 UTC