Using A Custom Element As A Styling Wrapper
This post is designed to confirm you can target a custom element with a CSS selector to style both it and it's children (e.g. in a grid).
Output
Sidebar
Main Content
HTML
Sidebar
Main Content
CSS
}
}
}
The reason I'm doing this is to support a code block web component where it would be nice to be able to style the custom element for the main wrapper instead of having to add a I've tested it in Firefox, Safari, and Chrome on a mac and everything looks good. I've also gotten some confirmation in the Frontend Horse discord that things should basically work as expected in the light DOM. (Introducing the shadow DOM could change things, but I'm not doing that in my current component.) inside it for that sole purpose.
-- end of line --