News for hackers. Stuff that matters.
Re:HTML Web Components by Lennu on Tuesday November 14, 2023 @03:25AM (#38260543)
A problem I faced recently with web components using shadow dom is styling nested components within custom element:

From <user-avatar> we can give styles to <img>

<user-avatar> <img src="https://example.com/path/to/img.jpg" alt="..." /> </user-avatar>

but not anymore when its below <picture>

<user-avatar> <picture> <img src="https://example.com/path/to/img.jpg" alt="..." /> </picture> </user-avatar>

There are no comments on this comment yet.