You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that when #6435 got merged to resolve #6434, some loose ends still remained untied. In particular, there seem to be specific scenarios where :global(:where(selector-list)) and the like still do not work.
In my case, I cannot perform the following:
main :global([href], [href] + p) {
color: red!important;
}
or anything similar.
From what I can tell so far, the issue seems to occur particularly when :global is the last part of a selector and it is passed a pseudo-class with a selector list that targets attributes.
Regarding the above example, you'll see that the selector is able to work properly when main > is removed or when [href] is changed to a non-attribute selector. But, of course, this means that a dev's set of options for styling their elements is noticeably restricted by this.
Describe the bug
It seems that when #6435 got merged to resolve #6434, some loose ends still remained untied. In particular, there seem to be specific scenarios where
:global(:where(selector-list))
and the like still do not work.In my case, I cannot perform the following:
or anything similar.
From what I can tell so far, the issue seems to occur particularly when
:global
is the last part of a selector and it is passed a pseudo-class with a selector list that targets attributes.Regarding the above example, you'll see that the selector is able to work properly when
main >
is removed or when[href]
is changed to a non-attribute selector. But, of course, this means that a dev's set of options for styling their elements is noticeably restricted by this.Reproduction
https://svelte.dev/repl/0d8c724d28b04840a9faaf36769047ec?version=3.46.5
Logs
No response
System Info
The text was updated successfully, but these errors were encountered: