WebComponents

251 bookmarks
Newest
Day 4: Root, host and the body
Day 4: Root, host and the body
Selectors like `:root` and `:host` are used often when working with mixture of CSS-only and web components. So let's take a look at them and how they relate to HTML elements.
·sarahgebauer.com·
Day 4: Root, host and the body
Day 5: Where is my web component?
Day 5: Where is my web component?
Yesterday's [post](https://www.sarahgebauer.com/post/day-4-root-host-and-the-body) was about `:host` and `:root`, today's post is about targeting elements with `:host-context`. At the moment it should be considered an experimental feature as only Chrome-based browsers support it.
·sarahgebauer.com·
Day 5: Where is my web component?
Declarative Shadow DOMs: Bridging the Gap Between Components and Performance
Declarative Shadow DOMs: Bridging the Gap Between Components and Performance
tl;dr: The Declarative Shadow DOM is a novelty in standardization which enables the server-side rendering of web components. This approach, in contrast to the traditional JS-based Shadow DOM, reduces client-side processing, improves load times, and offers SEO benefits by being part of the initial
·calendar.perfplanet.com·
Declarative Shadow DOMs: Bridging the Gap Between Components and Performance
Extending Responsive Video with HTML Web Components
Extending Responsive Video with HTML Web Components
Responsive HTML video is a web standard again, and with recent patches to Firefox (oh hey!) and Chrome that match Safari's preexisting support, it now works across all modern browsers! That means you can use media queries for delivering your videos and potentially save your users some precious bytes
·calendar.perfplanet.com·
Extending Responsive Video with HTML Web Components
share-button Web Component
share-button Web Component
share-button is a Web Component that turns a regular button element into a button that can invoke the native sharing options within the OS.
·darn.es·
share-button Web Component
Light-DOM-Only Web Components are Sweet – Frontend Masters Boost
Light-DOM-Only Web Components are Sweet – Frontend Masters Boost
First: the Light DOM is just… the regular DOM. When people talk about native Web Components, the Shadow DOM comes up a lot. I have extremely mixed feelings about the Shadow DOM. On one hand, it’s a powerful scoping tool. For example, CSS applied inside the Shadow DOM doesn’t “leak” outside, meaning you can be […]
·frontendmasters.com·
Light-DOM-Only Web Components are Sweet – Frontend Masters Boost