masto.es es uno de los varios servidores independientes de Mastodon que puedes usar para participar en el fediverso.
Bienvenidos a masto.es, el mayor servidor de Mastodon para hispanohablantes de temática general. Registros limitados actualmente a invitaciones.

Administrado por:

Estadísticas del servidor:

1,9 K
usuarios activos

#WebComponents

6 publicaciones6 participantes1 publicación hoy

The Invoker Commands API is the new hotness for a declarative #HTML solution to the problem “click and see something happen!!”

However…

If we’re inside shadow DOM and the button being clicked is supposed to do a thing via its host component, then uh, nope. 🤨

Thankfully there’s always a workaround in the Wide World of the Web, so I’ve written it up and here it is!

😁 Yay for building directly on top of platform mechanics. 👏 #JavaScript #WebComponents #WebDev

thathtml.blog/2025/07/more-fun

That HTML Blog · More Fun with Invoker Commands and Web Components
Más de Jared White (🏳️‍⚧️ ally)

After a long while tinkering with smaller and smaller ways to build re-usable pieces of HTML, I've landed on something that is simple, and uses the browsers built-in abilities to upgrade elements.

Introducing "ShadowRoot Injector" 🎉
github.com/Tram-One/shadowroot

ShadowRoot Injector is a way to declaratively define HTML, that will automatically insert when custom elements appear in the DOM. 🪡

Check out the link and examples, and let me know what y'all think!
#WebComponents #HTML #ShadowDOM #WebDev

🪡 declaratively define shadowroots to repeat in HTML templates - Tram-One/shadowroot-injector
GitHubGitHub - Tram-One/shadowroot-injector: 🪡 declaratively define shadowroots to repeat in HTML templates🪡 declaratively define shadowroots to repeat in HTML templates - Tram-One/shadowroot-injector

Move over Bootstrap.

Web Awesome is an awesome successor to what in my opinion was already the best open source #WebComponents library (Shoelace) on the market. Now we have the best #CSS framework on the market.

All of the CSS is…um…just CSS and all of the components are…um…just web components. Native #WebDev APIs across the board. 🙌

Take a first look at the brand new public beta:

thathtml.blog/2025/07/web-awes

That HTML Blog · Web Awesome, the First All-in-One Web Components + CSS Framework, is Finally Here
Más de Jared White (🏳️‍⚧️ ally)
Respondió en el hilo

@leaverou These all power HTML in some way or other...

- Scoped Custom Element Registries
- Reference Target API
- elementInternals.type github.com/MicrosoftEdge/MSEdg
- Declarative CSS Modules and the adoptedstylesheets attribute github.com/MicrosoftEdge/MSEdg
- Declarative Partial Updates github.com/WICG/declarative-pa
- DOM Parts
- Platform based windowing/virtualization
- <tabs>

I've got lots more for CSS/JS if you get signed up for those.

Good luck with the survey!

Home for explainer documents originated by the Microsoft Edge team - MicrosoftEdge/MSEdgeExplainers
GitHubMSEdgeExplainers/ElementInternalsType/explainer.md at main · MicrosoftEdge/MSEdgeExplainersHome for explainer documents originated by the Microsoft Edge team - MicrosoftEdge/MSEdgeExplainers