-
-
Notifications
You must be signed in to change notification settings - Fork 469
Closed
Description
Regarding #135 , "insertInto" seems to me incomplete or obsolete (or missing extra features) at the moment when combining it with ShadowDom.
In the ReadME there is the following example:
{
loader: 'style-loader'
options: {
insertInto: '#host::shadow>#root'
}
}
My concern is that the pseudo selector "::shadow" is going (probably it is) to be deprecated along with "/deep/".
Are you aware of any other way to replicate the example above using css selectors?
Maybe, an improved/extended way would be a direct access to the element's shadowRoot - declaring or inspecting the element's 'nature' - , of course supporting also simple elements such as the one in the tests https://github.com/webpack-contrib/style-loader/blob/master/test/basicTest.js#L98 (a simple div with "target" as class).
jimsimon and cthorner
Metadata
Metadata
Assignees
Labels
No labels