#webComponents

Dave Rupertdavatron5000
2026-02-12

😎 Two cool post on over on FrontendMasters:

#1 "How I Write Custom Elements with lit-html" by Dave Samaniego

How I write components but also explains a non-obvious superpower✨ of lit-html's atomic partial rendering system.

frontendmasters.com/blog/custo

#2 "The Missing Link for Web Components" by Florian Geierstanger.

Like a post I wrote but wonderfully more technical on the superpowers✨ of the Custom Elements Manifest.

frontendmasters.com/blog/the-m

Burton Smithstuffbreaker
2026-02-11

When you are in an file, and you want to go-to-definition for a custom element, what do you think the behavior should be? Should it go to:

- type definition
- JS file where the class is defined
- CEM entry
- something else

Massimo Artizzu 🇺🇦🔱MaxArt2501
2026-02-11

@sir_pepe Yes. I usually build my so they never access the DOM in the constructor. The connected callback is usually the right place to do this stuff.

Peter Krönersir_pepe
2026-02-11

☝️ PSA: Accessing this.children in web components (be that in the constructor or the connectedCallback) may get you different results depending on the HTML structure. Tunneling everything through <slot> and reacting to slotchange events (or setting up a MutationObserver if you are particularly depraved) is annoying, but not as much of a footgun.

2026-02-11
The Programmer’s Fulcrum: 06 February, 2026

This post originally appeared on The Fulcrum.

Welcome to this week’s The Programmer’s Fulcrum.

It’s your weekly review of the essential news in the Open Media Network and Fediverse development communities with a focus on devastating big tech via Techno Anarchism. We aim to provide actionable content you can use to destroy Techno Feudalism each week. It has the additional benefit of weakening […]

https://newsletter.mobileatom.net/the-programmers-fulcrum-06-february-2026/ #ActivityPub #ATProto #Bonfire #CSS #DrupalCMS #fediverse #firefox #Ghost #Gutenberg #Holos #HTML #HTMX #javascript #Krita #LibreOffice #Linux #Mastodon #Mozilla #Nextcloud #OMN #OpenProject #OpenProject #Scribus #signal #WebComponents #WordPress #xWiki
Header illustration with text over dark background of stars, spaceship, and astronaut.
Веб-стандартыwebstandards_ru
2026-02-10

Reference Target: и волки сыты, и инкапсуляция цела. Элис Боксхолл представляет новое предложение, которое позволяет элементам в shadow DOM становиться целями, когда ссылаются на хоста, при этом сохраняя инкапсуляцию. В спецификациях есть пул-реквесты, а в браузерах реализации: в Chromium самая полная за флагом, а в WebKit и Firefox ранние прототипы.

blogs.igalia.com/alice/referen

Фото автора рядом с заголовком «Reference Target: having your encapsulation and eating it too», в центре фрагмент кода и внизу морские волны.
Web Standardswebstandards_dev
2026-02-10

Reference Target: having your encapsulation and eating it too. @sundress introduces the new proposal that lets elements in shadow DOM become targets when a shadow host is referenced, while keeping encapsulation. There are open specs PRs and experimental implementations: Chromium’s one is the most complete, and WebKit and Firefox have early prototypes.

blogs.igalia.com/alice/referen

Author’s photo beside the headline “Reference Target: having your encapsulation and eating it too”, with a code snippet in the center and ocean waves along the bottom.
Egor Kloosdutchcelt
2026-02-06

The combination of Custom Element Slots, the Popover API, and CSS Anchor Positioning enables complex navigation menus, with the browser doing most of the lifting.

codepen.io/dutchcelt/project/e

2026-02-05

Okay #frontend folks:

I wrote UIs before React. I leaned into React hard early on, because it matched my mental model for UIs. I don't want to do React anymore.

**In your opinion what's the next best direction for building UIs?**

My goal is to simplify the process of writing and managing accessible interactive components with as little overhead as possible.

Boosts and wildly unpopular opinions welcome.

#react #vue #preact #webcomponents #svelte

Marco Otte-Wittemarcoow
2026-02-05

RE: fosstodon.org/@mainmatter/1160

We’re seeing more and more teams adopt multi-framework architectures with , , , , or mixed together in one big system. @nickschot wrote about some learnings from a recent project in which @mainmatter helped a client integrate Ember.js and React.

Learn JavaScript, React, and TypeScript to Node.js, Fullstack, and Backendfrontendmasters.com@web.brid.gy
2026-02-02
Веб-стандартыwebstandards_ru
2026-02-02

Как динамически устанавливать кастомные элементы. Хейдон Пикеринг предлагает соглашение об именах, хелперы define() и скрипт install(), который ищет :not(:defined), убирает дубликаты и импортирует только реально используемые элементы. Для зависимых компонентов есть событие ready, а для добавлений после загрузки подходит MutationObserver.

heydonworks.com/article/dynami

Скетч с лицом автора рядом заголовком «How to dynamically install custom elements», ниже панели с деревом JS-файлов, кастомными элементами и JavaScript-кодом.
Web Standardswebstandards_dev
2026-02-02

How to dynamically install custom elements. @heydon shows a naming convention, a tiny define() helper, and an install() script that scans :not(:defined), dedupes matches, and dynamically imports only what is used. For dependent components, it can fire a ready event or use a MutationObserver for elements added later.

heydonworks.com/article/dynami

Sketch of the author’s face next to the headline “How to dynamically install custom elements”, with panels showing a JS file tree, custom elements, and JavaScript code.
Inautiloinautilo
2026-02-02


Anti-frameworkism · When to choose native web APIs over frameworks ilo.im/169luf

_____

Burton Smithstuffbreaker
2026-02-01

I've been having fun with improving this FOUC solution for . Thank you, everyone, for the feedback!

I've improved upon it.

body:has(:not(:defined)) {
  opacity: var(--wc-loaded, 0);
  animation: showBody 0s linear 100ms forwards;
}

@keyframes showBody {
  to {
    --wc-loaded: 1;
  }
}
2026-01-31

That resonates with me

Reuben Walker aka mobileatommobileatom@flipboard.com
2026-01-31

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst