#WebComponents

Веб-стандарты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
Burton Smithstuffbreaker
2026-01-30

I've been trying to think of a way to reduce the flash of unstyled content (FOUC) when using , with something I could add to my reset that doesn't require .

Here's what I came up with:

A CSS snippet for reducing FOUC with web components:

body:has(:not(:defined)) {
  opacity: 0;
  transition: opacity 0s 50ms;
}
Jeferson 'Shin'shinspiegel
2026-01-30

And its Friday again! So lets talk about Nodes and HTML? No code today, just talking about the limits of a page and how far back we are.

jeferson.me/blog/2026/01/29/th

blog.lmorchard.comblog@lmorchard.com
2026-01-29

Wrapping Mermaid Diagrams in a Web Component

https://blog.lmorchard.com/2026/01/28/mermaid-web-component/

TL;DR: I've been wanting to add diagram support to my blog posts for a while now. I saw beautiful-mermaid on Hacker News and thought it was neato. But, I felt super lazy, so I tasked Claude Code with wrapping it in a web component.

#webdev #javascript #webcomponents #mermaid #esbuild

blog.lmorchard.comblog@lmorchard.com
2026-01-26

feedspool-go v0.2.0: Smooth Scrolling and Quiet Feeds

https://blog.lmorchard.com/2026/01/26/feedspool-go-v0-2-0/

TL;DR: Released v0.2.0 of feedspool-go, my static-site RSS reader. Added features to keep infrequent feeds from vanishing and an over-engineered web component lazy-loading system that progressively loads content as you scroll.

#feedspool #golang #rss #webdev #javascript #webcomponents #indieweb

Веб-стандартыwebstandards_ru
2026-01-26

Как писать кастомные элементы с lit-html. Дэйв Саманьего объясняет, почему выбирает lit-html вместо полного Lit, включая размер, light DOM без shadow DOM и более простые импорты. Он показывает stateless обёртку <textarea> со статус-баром и stateful Покемон-карточки с сигналами, перемешиванием, Intersection Observer и навигацией с клавиатуры.

frontendmasters.com/blog/custo

Руки держат карточку с логотипом и текстом «Lit» под заголовком «How I Write Custom Elements with lit-html».

Client Info

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