Igalia Chats cover image

Igalia Chats

A Lighter Shade of DOM

Feb 2, 2024
Miriam Suzanne, an expert in Shadow DOM and 'open styling' problems, joins Brian Kardell and Eric Meyer on Igalia Chats. They discuss the history and development of the Shadow DOM, CSS-based DOM segmentation and selectors, managing styles in custom elements, coordinating layers in component and page authoring, customization and feedback, and the exploration of layer names and intentional crossover.
52:35

Episode guests

Podcast summary created with Snipd AI

Quick takeaways

  • Custom elements and shadow DOM provide encapsulation and reusability in web development, but finding a balance between their benefits and easy customization is a current challenge.
  • Open Styleable and Donut Scope are two proposed solutions for styling web components, aiming to provide default styles while allowing page authors to override and customize those styles.

Deep dives

Custom elements and shadow DOM: Exploring the current trends

Custom elements and shadow DOM are currently gaining momentum in web development. While custom elements are often associated with the use of shadow DOM, it is important to note that they can also be used without it. Shadow DOM provides encapsulation and helps in creating reusable components, while custom elements allow developers to define their own HTML elements with custom functionality. However, there has been a debate regarding when and how to use shadow DOM, as it can limit the ability to style and interact with components. Different approaches, such as the concept of named layers, have been proposed to address this issue. Overall, the development community is actively exploring ways to balance the benefits of shadow DOM with the need for easy customization and styling.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode