toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

218
active users

#shadowdom

0 posts0 participants0 posts today
Brandon Zhang 🇨🇳<p><a href="https://mastodon.online/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> people, in this Codepen that I set up for testing, the dialog inside the <a href="https://mastodon.online/tags/ShadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ShadowDOM</span></a> cannot be open by its sibling button even enough they're connected by correct ID attribute. <br>Is this expected or am I missing something here?</p><p><a href="https://codepen.io/brandonzhang/pen/QwwXXmL" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codepen.io/brandonzhang/pen/Qw</span><span class="invisible">wXXmL</span></a></p>
JWSGeek<p>I'm in total agreement with this post: <a href="https://gomakethings.com/the-shadow-dom-is-an-antipattern/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gomakethings.com/the-shadow-do</span><span class="invisible">m-is-an-antipattern/</span></a> - the ability to have a global CSS system is something that has been encouraged for YEARS as a matter of reducing the download footprint, yet shadow dom discourages this.</p><p>And there shouldn't be any technical reason why slots should require shadow. take this declared child, move it to that spot in my html structure. It can be (and has been) faked by multiple frameworks including lit, stencil, and JET.</p><p>'generic' web components that use internal CSS to define the layout, and then rely on a global css system to be flexible in appearance, is what we web-devs really want.</p><p><a href="https://universeodon.com/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a> <a href="https://universeodon.com/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a> <a href="https://universeodon.com/tags/shadowdom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowdom</span></a></p>
Aral Balkan<p>New Kitten release</p><p>• Now leaves &lt;style&gt; tags within &lt;template&gt; tags alone when collating and normalising the CSS on a page so as not to interfere with scoped styles in declarative shadow DOM.</p><p>(Kitten’s Streaming HTML workflow¹ – which uses htmx and WebSockets under the hood – combined with built-in support for slots, etc., in Kitten components² means the use of declarative shadow DOM is mostly useful if you want scoped styles. Ideally, of course, use classes to scope styles to your components and be specific in your CSS selectors in general so as not to pollute elements in your components. Although that’s a bit like saying you should floss everyday. Yeah, we all know we should…) :)</p><p>Update: All that said, I’d highly recommend you don’t use Shadow DOM in your Kitten apps. For one thing, htmx’s WebSocket extension doesn’t seem to play well with it. And for another, you really don’t need it and definitely not just to get scoped CSS.</p><p>Enjoy!</p><p>:kitten:💕</p><p>¹ <a href="https://kitten.small-web.org/tutorials/streaming-html/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">kitten.small-web.org/tutorials</span><span class="invisible">/streaming-html/</span></a><br>² <a href="https://kitten.small-web.org/tutorials/components-and-fragments/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">kitten.small-web.org/tutorials</span><span class="invisible">/components-and-fragments/</span></a></p><p><a href="https://mastodon.ar.al/tags/Kitten" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Kitten</span></a> <a href="https://mastodon.ar.al/tags/SmallWeb" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SmallWeb</span></a> <a href="https://mastodon.ar.al/tags/SmallTech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SmallTech</span></a> <a href="https://mastodon.ar.al/tags/CSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSS</span></a> <a href="https://mastodon.ar.al/tags/CSSScoping" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSSScoping</span></a> <a href="https://mastodon.ar.al/tags/ShadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ShadowDOM</span></a> <a href="https://mastodon.ar.al/tags/shadowRoot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowRoot</span></a> <a href="https://mastodon.ar.al/tags/DOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DOM</span></a> <a href="https://mastodon.ar.al/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> <a href="https://mastodon.ar.al/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> <a href="https://mastodon.ar.al/tags/JS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JS</span></a> <a href="https://mastodon.ar.al/tags/style" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>style</span></a> <a href="https://mastodon.ar.al/tags/template" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>template</span></a> <a href="https://mastodon.ar.al/tags/declarativeShadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>declarativeShadowDOM</span></a> <a href="https://mastodon.ar.al/tags/NodeJS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NodeJS</span></a> <a href="https://mastodon.ar.al/tags/web" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>web</span></a> <a href="https://mastodon.ar.al/tags/dev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dev</span></a></p>
westbrook<p>In that it was dropped as part of a thread that you might have otherwise been uninterested in, sharing this again to start your Thursday:</p><p><a href="https://blog.westbrookjohnson.com/patterns/i-am-feeling-so-disconnected/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.westbrookjohnson.com/patt</span><span class="invisible">erns/i-am-feeling-so-disconnected/</span></a></p><p>Catch up on some techniques for managing connection time work in a custom element. 😁 There's even reasons for using shadow DOM hidden in there. 😱</p><p>Thanks @nachtfunke for starting the convo on this and <span class="h-card" translate="no"><a href="https://mastodon.social/@zachleat" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>zachleat</span></a></span> for challenging a toot into a full on blog dump. 🙇 </p><p><a href="https://mastodon.social/tags/customElements" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>customElements</span></a> <a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a> <a href="https://mastodon.social/tags/shadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowDOM</span></a> <a href="https://mastodon.social/tags/moveBefore" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>moveBefore</span></a> <a href="https://mastodon.social/tags/webDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webDev</span></a></p>
westbrook<p><span class="h-card" translate="no"><a href="https://fediverse.zachleat.com/@zachleat" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>zachleat</span></a></span> <span class="h-card" translate="no"><a href="https://indieweb.social/@nachtfunke" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>nachtfunke</span></a></span> I'm not saying this is because I didn't get you anything for your birthday, but I'm also not saying it isn't because of that...</p><p><a href="https://blog.westbrookjohnson.com/patterns/i-am-feeling-so-disconnected/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.westbrookjohnson.com/patt</span><span class="invisible">erns/i-am-feeling-so-disconnected/</span></a></p><p><a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a> <a href="https://mastodon.social/tags/webComponentsCG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponentsCG</span></a> <a href="https://mastodon.social/tags/webDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webDev</span></a> <a href="https://mastodon.social/tags/customElements" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>customElements</span></a> <a href="https://mastodon.social/tags/shadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowDOM</span></a></p>
Burton Smith<p>This is a re-post since I don't see Keith on here:</p><p>Call to action for <a href="https://mastodon.social/tags/WebComponent" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponent</span></a> / <a href="https://mastodon.social/tags/ShadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ShadowDOM</span></a> fans: I've added an experimental flag to Firefox lifting the restriction on adoptedStyleSheets, meaning shadowroots can adopt `link.sheet` or `style.sheet`.</p><p>Please try this out, and let me know if you encounter issues!<br><a href="https://github.com/w3c/csswg-drafts/issues/10013" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/w3c/csswg-drafts/is</span><span class="invisible">sues/10013</span></a></p>
keithamus<p><a href="https://github.com/w3c/csswg-drafts/issues/10013#issuecomment-2627222385" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/w3c/csswg-drafts/is</span><span class="invisible">sues/10013#issuecomment-2627222385</span></a></p><p>Call to action for <a href="https://indieweb.social/tags/WebComponent" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponent</span></a> / <a href="https://indieweb.social/tags/ShadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ShadowDOM</span></a> fans: I've added an experimental flag to Firefox lifting the restriction on adoptedStyleSheets, meaning shadowroots can adopt `link.sheet` or `style.sheet`.</p><p>Please try this out, and let me know if you encounter issues!</p>
🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸<p>I think <a href="https://mastodon.social/tags/CSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSS</span></a> vars are good enough for bridging styles from a page into it's <a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a>' <a href="https://mastodon.social/tags/shadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowDOM</span></a></p><p><a href="https://mastodon.social/tags/unpopularOpinion" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unpopularOpinion</span></a> <a href="https://mastodon.social/tags/webDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webDev</span></a> <a href="https://mastodon.social/tags/styling" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>styling</span></a></p>
westbrook<p>I’ve never had stress around putting all my <a href="https://mastodon.social/tags/CSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSS</span></a> for all of my <a href="https://mastodon.social/tags/webComponent" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponent</span></a> in their <a href="https://mastodon.social/tags/shadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowDOM</span></a>… ask me anything.</p>
westbrook<p><span class="h-card" translate="no"><a href="https://sunny.garden/@knowler" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>knowler</span></a></span> MDN accepts PRs…</p><p>I started working on <a href="https://github.com/Westbrook/axe-core-element-internals" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Westbrook/axe-core-</span><span class="invisible">element-internals</span></a> as a test bed for <a href="https://mastodon.social/tags/ElementInternals" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ElementInternals</span></a> usage for ace-core, but maybe more useful at large for these APIs. I accept PRs, too. 🤗</p><p>Also, we’re looking to reignite the push for community docs and guides for WCs in <a href="https://discord.gg/KzgaSbGc9q" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">discord.gg/KzgaSbGc9q</span><span class="invisible"></span></a> to clarify these sorts of things, as well. </p><p><a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a> <a href="https://mastodon.social/tags/shadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowDOM</span></a> <a href="https://mastodon.social/tags/webComponentsCG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponentsCG</span></a> <a href="https://mastodon.social/tags/a11y" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>a11y</span></a></p>
westbrook<p><span class="h-card" translate="no"><a href="https://social.vivaldi.net/@brucelawson" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>brucelawson</span></a></span> and, it’s behind the Experimental Web Platform Features flag in Chromium, so you can try it out today!!</p><p><a href="https://mastodon.social/tags/shadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowDOM</span></a> <a href="https://mastodon.social/tags/a11y" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>a11y</span></a> <a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a></p>
westbrook<p>Hi <a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a> friends, new and old! 👋</p><p>So many of you in recent days, was there some kind of drama? 😉</p><p>Thing won't always be this exciting, but I hope together we make make the web a little better place. 🚧 </p><p>At times that might mean participating in the <a href="https://mastodon.social/tags/webComponentsCG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponentsCG</span></a>. Come hang out: <a href="https://github.com/w3c/webcomponents-cg" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/w3c/webcomponents-c</span><span class="invisible">g</span></a> 👷</p><p>Others will just be sharing ideas about <a href="https://mastodon.social/tags/webDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webDev</span></a> <a href="https://mastodon.social/tags/shadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowDOM</span></a> <a href="https://mastodon.social/tags/CSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSS</span></a> <a href="https://mastodon.social/tags/customElements" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>customElements</span></a> <a href="https://mastodon.social/tags/w3c" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>w3c</span></a>, etc. 📖</p><p>What about you? What are you working on/learning about? Let people know in the thread! 🗣️</p>
westbrook<p><span class="h-card" translate="no"><a href="https://fediverse.zachleat.com/@zachleat" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>zachleat</span></a></span> </p><p>Some others:</p><p><span class="h-card" translate="no"><a href="https://indieweb.social/@trusktr" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>trusktr</span></a></span> <br><span class="h-card" translate="no"><a href="https://mastodon.social/@stuffbreaker" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>stuffbreaker</span></a></span> <br><span class="h-card" translate="no"><a href="https://indieweb.social/@jaredwhite" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>jaredwhite</span></a></span> <br><span class="h-card" translate="no"><a href="https://mastodon.social/@graynorton" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>graynorton</span></a></span> <br><span class="h-card" translate="no"><a href="https://techhub.social/@nikkimk" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>nikkimk</span></a></span> </p><p>And of course the whole hash tags of:</p><p><a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a> <a href="https://mastodon.social/tags/webComponentsCG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponentsCG</span></a> <a href="https://mastodon.social/tags/shadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowDOM</span></a> <a href="https://mastodon.social/tags/customElements" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>customElements</span></a></p>
westbrook<p>Hrm. <a href="https://mastodon.social/tags/viewTransitions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>viewTransitions</span></a> and <a href="https://mastodon.social/tags/shadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowDOM</span></a> …discuss. </p><p><a href="https://mastodon.social/tags/CSSWG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSSWG</span></a> <a href="https://mastodon.social/tags/webComponentsCG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponentsCG</span></a></p>
Jesse Jurman<p>Small declarative web-component for loading fonts in Shadow DOM, especially useful for components that want to load an icon using a font library!</p><p><a href="https://github.com/JRJurman/use-font" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/JRJurman/use-font</span><span class="invisible"></span></a></p><p>Admittedly, it is so tiny, that you could just copy-paste the code for most projects, but it is a good reference point for anyone looking for something similar!</p><p><a href="https://fosstodon.org/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> <a href="https://fosstodon.org/tags/ShadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ShadowDOM</span></a></p>
westbrook<p>Oooohohoo! The nearness of Reference Target <a href="https://github.com/WICG/webcomponents/blob/gh-pages/proposals/reference-target-explainer.md" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/WICG/webcomponents/</span><span class="invisible">blob/gh-pages/proposals/reference-target-explainer.md</span></a> becoming a practical part of the web platform and opening even more ways to deliver accessible content to users is very exciting!! 🚀 </p><p>Working on some WPTS to help the spec move forward in advance of next month's TPAC meetings. 🧪 </p><p><a href="https://mastodon.social/tags/a11y" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>a11y</span></a> <a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a> <a href="https://mastodon.social/tags/shadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowDOM</span></a> <a href="https://mastodon.social/tags/w3c" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>w3c</span></a></p>
🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸<p>Using <a href="https://mastodon.social/tags/DeclarativeShadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DeclarativeShadowDOM</span></a> to render placeholder content that gets replaced later as the <a href="https://mastodon.social/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> <a href="https://mastodon.social/tags/streams" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>streams</span></a> in with no <a href="https://mastodon.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a>!</p><p><a href="https://lamplightdev.com/blog/2024/01/10/streaming-html-out-of-order-without-javascript/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">lamplightdev.com/blog/2024/01/</span><span class="invisible">10/streaming-html-out-of-order-without-javascript/</span></a></p><p>This is an interesting technique, but it has limitations in that you can't close the <a href="https://mastodon.social/tags/customElement" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>customElement</span></a> until you've loaded the content.</p><p><a href="https://mastodon.social/tags/webDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webDev</span></a> <a href="https://mastodon.social/tags/shadowDom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowDom</span></a> <a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a> <a href="https://mastodon.social/tags/customElements" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>customElements</span></a> <a href="https://mastodon.social/tags/http" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>http</span></a> <a href="https://mastodon.social/tags/streaming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>streaming</span></a> <a href="https://mastodon.social/tags/web" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>web</span></a> <a href="https://mastodon.social/tags/frontend" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>frontend</span></a></p>
Nathan Knowler<p>And to highlight a similar, future feature: the proposed “Reference Target for Cross-Root ARIA” feature will allow us to map which element inside the shadow tree gets referenced when ARIA attributes target our custom element.</p><p><a href="https://github.com/WICG/webcomponents/blob/gh-pages/proposals/reference-target-explainer.md" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/WICG/webcomponents/</span><span class="invisible">blob/gh-pages/proposals/reference-target-explainer.md</span></a></p><p><a href="https://sunny.garden/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> <a href="https://sunny.garden/tags/ShadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ShadowDOM</span></a> <a href="https://sunny.garden/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> <a href="https://sunny.garden/tags/CustomElements" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CustomElements</span></a></p>
Nathan Knowler<p>One very nice thing about shadow trees is that since they’re encapsulated, you don’t need to worry as much about ID collisions inside the trees. This takes one thing off your plate when building a resusable custom element.</p><p><a href="https://sunny.garden/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> <a href="https://sunny.garden/tags/ShadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ShadowDOM</span></a> <a href="https://sunny.garden/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> <a href="https://sunny.garden/tags/CustomElements" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CustomElements</span></a></p>
🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸<p>Good reason to avoid ShadowDOM: "it breaks html forms"</p><p>Bad reason: "I like global CSS"</p><p><a href="https://mastodon.social/tags/webdev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webdev</span></a> <a href="https://mastodon.social/tags/css" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>css</span></a> <a href="https://mastodon.social/tags/html" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>html</span></a> <a href="https://mastodon.social/tags/shadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowDOM</span></a> <a href="https://mastodon.social/tags/web" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>web</span></a> <a href="https://mastodon.social/tags/forms" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>forms</span></a> <a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a></p>