Skip to content
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

::slotted() should full support complex selector!! #2425

Open
minzojian opened this issue Mar 8, 2018 · 0 comments
Open

::slotted() should full support complex selector!! #2425

minzojian opened this issue Mar 8, 2018 · 0 comments
Labels
css-scoping-1 Current Work

Comments

@minzojian
Copy link

minzojian commented Mar 8, 2018

i wrote a demo here

for good to SEO,we need support a clear dom structure in html, eg. there is a navbar component,and i add some links inside,and planning to inject them into a navbar component. (even it is not for good to SEO, as a common reuseable component, elements should be inject outside freely)

  <my-navbar>
    <ul>
      <li>link1</li>
      <li>link2</li>
      <li>link3</li>
      </ul>
  </my-navbar>

however when i try to add some style for the < li > tag inside my navbar, it just not work
i found a explanation that slotted is just use simple selector
i wonder why the ::slotted selector can't support the complex selector (or child selector)?
::slotted() should full support complex selector
it just lame if not support

just copied from WICG/webcomponents#745

@minzojian minzojian changed the title ::slotted() shoud full support complex selector!! ::slotted() should full support complex selector!! Mar 8, 2018
@fantasai fantasai added the css-scoping-1 Current Work label Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-scoping-1 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants