#customElement
I forgot the old dream of building a Babylon #webcomponent / #customelement, but that's there.
June 14, 2024 at 6:45 PM
The observation however is that CSS @property is dynamically recalculated (and invalidated) on move but not the customElement interface (and a variety of other things).

Alternatively adding extra wrappers via :host and namespacing all the CSS variables is possible but not good UX
December 3, 2024 at 1:10 AM
あー、でもこれだと Ruby の GC が効かなくなっちゃうな。
当初の目的だった CustomElement だけで使うようにするか。
January 5, 2025 at 5:45 PM
「文字化けを復元するよ」くんを CustomElement で作り直した。CustomElement 便利だなー。
tmtms.net/mojibake/
文字化けを復元するよ
tmtms.net
December 28, 2024 at 12:27 PM
Mi aporte al universo de los frontenders:
Una etiqueta HTML que se ve como un dropdown y sirve para elegir múltiples opciones como CustomElement.

Repo:
github.com/padawanstrai...

#html #css #programacion #programacionweb

youtu.be/qGJcw0vBVL0
Etiqueta HTML SELECT para selección múltiple | CustomElement HTML
YouTube video by Padawans Trainer
youtu.be
December 2, 2024 at 9:54 PM
Another sorta blog post is up. Code golfing a tabs custom element. Hopefully simple enough to read and understant the code to make your own. As usual I think the accessibility and progressive enhancement sections are the important bits. Otherwise nothing too fancy. github.com/sakamies/tab...
GitHub - sakamies/tabs-customelement: A minimal tabs custom element that tries to work exactly according to APG Tabs Pattern.
A minimal tabs custom element that tries to work exactly according to APG Tabs Pattern. - sakamies/tabs-customelement
github.com
May 27, 2025 at 5:39 PM
Thats a perfect usecase for a CustomElement in my opinion. Also tackles the automatic leveling problem at the same time.
codepen.io/sylvainpv/pe...
June 15, 2025 at 3:45 PM
Mi aporte al universo de los frontenders:

Una etiqueta HTML que se ve como un dropdown y sirve para elegir múltiples opciones como CustomElement.

Repo:
github.com/padawanstrai...

#html #css #programacion #programacionweb

youtu.be/qGJcw0vBVL0
Etiqueta HTML SELECT para selección múltiple | CustomElement HTML
YouTube video by Padawans Trainer
youtu.be
December 3, 2024 at 2:30 AM
How did I not know about this in @lit.dev

TL;DR – you can use `PropertyValues` to get strongly typed maps in lifecycle methods. 🤩
November 21, 2024 at 3:56 PM
> create custom elements like

is HTMLUnknowElement; can be used for layout & styling.
Will always be a HTMLUnknownElement

IS a UNdefined CustomElement, valid HTMLElement.
Behaves as
But CAN be upgraded to Web Component

dashed-element.github.io
dashed-element.github.io
February 15, 2026 at 9:23 AM
A year older, and wiser

Had to update the Web Component today

Couldn't resist to add an extra default counter: event="48"

added the FlagMeister Web Component for flag effect

event-count.github.io

flagmeister.github.io

#webcomponents #webcomponent #customelement #customelements
January 21, 2025 at 4:27 PM
おー!!
さすがですね 😍
src/process.tsを見るとめっちゃ勉強になります〜
発表で言ったように<svelte:options customElement={{...}}/>を書き換えることも割と簡単にできそうですね。
共有ありがとうございます 🙏
December 22, 2024 at 5:49 PM
Svelte 4リリース。
Node.js 14のサポート終了、CJSの出力は廃止しESMのみをサポートするように、Custom Elementsの対応を`tag`オプションから`customElement`オプションに変更。
生成するファイルサイズの削減、ウェブサイトのドキュメントを刷新など "Announcing Svelte 4" https://svelte.dev/blog/svelte-4 #Svelte #ReleaseNote
June 23, 2023 at 12:06 PM
Part of it is cargo culting the customElement decorator without understanding what it does. If you need three different CSS stylings for lists, for example, you can create a naked HTMLElement, inherit it three times, and call customElement on each one.
March 13, 2025 at 3:26 AM
Here's a little custom element I just released that looks like a web browser: github.com/catapart/mag...

Handy for things like screenshots and marketing pages.

Single js file
Available vanilla or on npm
Licensed CC0

#js #customElement #webComponent #mockup #browser
August 3, 2024 at 2:09 PM
This just got even easier, after adding custom callbacks!

codepen.io/Jon-DeWitt/p...
October 12, 2024 at 6:49 PM
Are we still talking about web components? Cause I was inspired to reduce the boilerplate with a functional syntax + signals!

Live playground: codepen.io/Jon-DeWitt/p...
October 8, 2024 at 11:31 PM
HTMLの属性で将来的な追加に対して安全なように標準以外の属性使うならdata-プレフィックス使うのが推奨されてるけどCustomElementで属性を全部data-プレフィックスにするのは不便すぎるしそうしてないのを多く見る
それならdivとかもdata-プレフィックスにこだわらなくてもいい気がしてくる
January 16, 2025 at 8:39 AM
ShadowDOMを 使ってない CustomElement で this.querySelectorAll などを使うときに :scope を付けたほうがいい
忘れがちだけど
October 25, 2024 at 4:17 PM
CustomElementを直接使うとき属性とプロパティの対応付けどうやるのがいいのかな
プロパティセッターから属性を書き換えと属性の変更コールバックからプロパティの書き換えをそのままやるとループする
できれば実体は片方だけにしたいけど属性は文字列しか持てないから文字列以外も考えるならプロパティの方になる
プロパティが実体なら属性のほうでゲッター/セッター的な事が必要になるけどgetAttribute/setAttributeのオーバーライドだけで出来るほど簡単じゃないしDOMの仕組みで実体があったほうが良さそう
となるとプロパティと属性の両方で実体持たないといけない
July 12, 2024 at 4:36 PM
Thanks! I'm exploring that direction of not using shadow DOM. The MDN documentation strongly suggest to use it, so I'm a little bit hesitant.

I like to have layout CSS in the CustomElement but styling like margin, padding, etc are more context sensitive and I like to manage them in my CSS files.
May 5, 2026 at 3:02 PM
March 9, 2026 at 5:03 PM
Got asked today about scoped custom element registries and a group that wants to use the polyfill. Our DS uses the customElement decorator, so we get self registration. I know Shoelace/WA provides a non-self registration import. Y'all have good luck with that? @cory.laviska.com @konnorrogers.com
March 19, 2025 at 11:42 PM
tout fonctionne (y compris l’optimisation et les variantes responsives des photos), mais j’ai encore un truc pénible qui coince dans la compilation vers customElement (« web components »)
July 30, 2025 at 1:39 PM