Re: [WICG/webcomponents] There is no way to navigate to a fragment inside a shadow tree (#924)

> 
> 
> > @rniwa , the discussion on [#66](https://github.com/WICG/webcomponents/issues/66) is about navigate to a fragment inside a shadow tree. This is not my case. My case is a pure CSS trick that doesn't work inside the Web Component when it should.
> 
> No, you're misunderstanding the cause of the problem. The fragment navigation is precisely what's missing & what's causing `:target` to never apply inside a shadow tree.
> 
> Please go read the [definition of `:target`](https://drafts.csswg.org/selectors-4/#the-target-pseudo) before leaving any new comments.

Thank you. That's is what I'm trying to say which means there is a bug because that piece is missing.
If you search for the documentation on the CSS pseudo-class, there is nothing that says "It doesn't work in Web Components by the way"

So my point is, if there is a decision to not include a fragment navigation, at least put something in place so the code I shared doesn't break.

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

Received on Saturday, 1 May 2021 16:28:10 UTC