5 ms·
I like the template and slots mechanisms described here: https://developer.mozilla.org/en-US/docs/Web/API/Web_components https://developer.mozilla.org/en-US/do
by PaulHoule 2y ago
I like the template and slots mechanisms described here:
https://developer.mozilla.org/en-US/docs/Web/API/Web_components https://developer.mozilla.org/en-US/docs/Web/API/Web_compone...
and I see some CSS pseudo-classes but I don't see anything I can use to suppress the host site's CSS acting on my UI elements -- am I missing something?
- cranberryturkey 2y agoif you use the shadow dom, your component won't inherit css rules from the parent site.
- mejutoco 2y agoBe default css rules cannot affect the internals of web components. They can only read variables.