It seems we can now customize the select element, right? right?!
Demo: codepen.io/t_afif/pen/P... via @codepen.io
It seems we can now customize the select element, right? right?!
Demo: codepen.io/t_afif/pen/P... via @codepen.io
Is there a Bluesky filter for profiles with anime avatars?
How about a $600 βMacBook pocketβ www.apple.com/newsroom/202...
The React Foundation has officially launched, hosted by the Linux Foundation. Read more here: react.dev/blog/2026/02...
Interesting! Was the DX so bad that you stopped working on it?
I didnβt realize what the issue was because I was quickly scanning the diagram. Then I started reading the text. Wow.
The obvious and complete lack of copy-editing and QA is more depressing to me than using AI to write this.
It would be nice if @bsky.app added hyperlinks to users handles if their a URL. Seems funny to use oneβs website as a handle but then you canβt click it.
The blip of nothing visible is more apparent when more of the app is styled light DOM, the web components load in very delayed in those cases
Thereβs a state unique to DSD where you could have a styled, undefined element. In our case, we want to show the element, even if itβs not defined yet, for perceived performance.
Yes, but this will short circuit the timeout. The goal is to show the user the UI as quickly as styles are available. You otherwise have to fiddle with the timeout length to be long enough not to show unstyled content, but not long enough to delay the UI
It's nothing fancy, it just overrides the animation, in case it hasn't resolved yet. It supports when you render undefined custom elements with declarative shadow DOM.
:host(:not(:defined)) {
visibility: visible !important;
}
We adopted this and works great in testing. For declarative shadow DOM, I also added a rule that overrides the hidden state, so itβll display before itβs defined (since it then has styles) scottjehl.com/posts/web-co...
It's really sad that Chrome laid off one of the world's best CSS developer-designers, and now they have to fake demos of web features. youtu.be/d8J0vs-bEPE?...
... it's working great. But now I miss the benefits of utilities in Lit's ecosystem, and in some cases would benefit batching when some logic can get run multiple times when many properties update.
I made the element have an near identical API to Lit though, so it's not impossible to switch back
I keep going back and forth on this at work. We started with ReactiveElement since we don't use JS templating. But then sometimes the async reactive lifecycle feels heavy-handed when all of the DOM updates are imperative.
I recreated a similar base el with preact signals and... (tbc)
Ok
I miss Rdio.
Yesterday at TPAC I publicized my draft proposal for adding a declarative templating API to the DOM.
github.com/justinfagnan...
The repo has:
π Explainers for the templating API and DOM scheduler API
ποΈ Full prototype implementations
βοΈ a JSX transform
βοΈ a mini React-like framework
Declarative Shadow DOM and Declarative Custom Elements sound so good, but I still wish there was a way to do progressive enhancement with them to "hoist" form controls in a shadow root up into a parent form.
github.com/whatwg/html/...
Weβre using BEM and host selectors like :host(component-name) to prevent collisions. I guess you could include something like tailwind if you want the utility class approach. But youβd probably need :host() and ::slotted() at some point
To avoid FOUC, we have all of the elements set to visibility: hidden in the global document, then the shadow DOM stylesheet will override that and make them visible.
For any elements CSR'd after page load, we use that same stylesheet as a CSSStylesheet (or <style> if browser doesn't support)
As mentioned in another thread, we're using a link tag pointing to an external stylesheet. For build simplicity and caching, we have one stylesheet for the entire component library. So browsers should only fetch the stylesheet for the first component.
Excited to check this out!
show this to anyone else you know who also assumed DHH was just a normal conservative dude rather than a raging white supremacist lunatic
Making a custom element submit forms like <button> elements, without JS. I've encountered this issue a bunch working in e-commerce.
hey #webcomponent people that work at search engine companies, who do i have to annoy to get some words on an official blog for Bing and whatever else about search engine crawlers playing nicely with shadow dom?
thereβs exactly 0 official docs saying that web components wonβt hurt your SEO.
If you want `:host(:has(β¦))` to work in Chrome, please star this bug π
issues.chromium.org/issues/40062...
Oh I didnβt realize that. When you say checking whether the 2 are the same, is it comparing strings of HTML? Iβve been a little paranoid about perf ramifications of morphdom, but havenβt found a better solution. (Other than managing shadow DOM with imperative JS)
Iβm not super familiar with lit-html source code, but doesnβt it have its own diffing logic?
I just worked on a mustache + morphdom combo integration with ReactiveElement at work. Seems to be working well, but not battle-tested yet