Почему всегда теневой корень веб-компонента (пользовательский компонент) копирует стиль собственного корня ⇐ CSS
-
Anonymous
Почему всегда теневой корень веб-компонента (пользовательский компонент) копирует стиль собственного корня
I create and use a web component.
and I give a some style to web component. After then always web component inject own style to shadow-root.
This is code.
And I can see this dom structure in devTool's element tab
#shadow-root ~~~~ But, I want to give a style to only custom-element. Or give a style to only shadow-root, How can I do this?
....................................................
Источник: https://stackoverflow.com/questions/781 ... oots-style
I create and use a web component.
and I give a some style to web component. After then always web component inject own style to shadow-root.
This is code.
And I can see this dom structure in devTool's element tab
#shadow-root ~~~~ But, I want to give a style to only custom-element. Or give a style to only shadow-root, How can I do this?
....................................................
Источник: https://stackoverflow.com/questions/781 ... oots-style
Мобильная версия