<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/chris-corner-web-components-fnnodm0nx" -->

---
title: Chris’ Corner: Web Components | daily.dev
description: A roundup of web component news and links, centered on Dave Rupert's new lightweight syntax highlighter, MicroLighter, which uses the browser's native...
canonical: https://daily.dev/posts/chris-corner-web-components-fnnodm0nx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Chris’ Corner: Web Components | daily.dev
og:description: A roundup of web component news and links, centered on Dave Rupert's new lightweight syntax highlighter, MicroLighter, which uses the browser's native...
og:url: https://daily.dev/posts/chris-corner-web-components-fnnodm0nx
og:image: https://api.daily.dev/og/posts/fNNODM0Nx.png
og:image:alt: Chris’ Corner: Web Components
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Chris’ Corner: Web Components

**[CodePen](https://daily.dev/sources/codepen)** · 2 min read · 2 upvotes · 0 comments

## Summary

A roundup of web component news and links, centered on Dave Rupert's new lightweight syntax highlighter, MicroLighter, which uses the browser's native Highlight API instead of touching the DOM, and ships as a custom element under 2 KB. Also covered: a term coined 'Progressive Web Components' with an accompanying library, a talk on Shadow DOM encapsulation, a technique for referencing elements inside Shadow DOM from outside labels, and a Chrome DevTools trick where $$$() queries across Shadow DOM boundaries.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.codepen.io/2026/09/23/chris-corner-web-components-2>

## Questions this post answers

### What does the $$$() shortcut do in Chrome DevTools?

$$$() in Chrome DevTools performs a query that traverses through Shadow DOM boundaries, unlike the more familiar $() which maps to querySelector and $$() which maps to querySelectorAll. This makes it possible to select elements nested inside shadow roots directly from the console without manually piercing each shadow boundary.

_Developers debugging shadow DOM heavy components can keep tips like this bookmarked on daily.dev._

### How can a label element reference a form control that's hidden inside a Shadow DOM?

A newly available technique allows targeting by reference across shadow boundaries, letting a real label element associate with a custom element like fancy-checkbox even though the actual input is encapsulated within a Shadow DOM and normally not visible to the label. It was tested working in Chrome, though cross-browser support is not confirmed.

_Design system builders wrestling with shadow DOM form accessibility can track solutions like this on daily.dev._

### What is MicroLighter and how small is it?

MicroLighter is a syntax highlighter built by Dave Rupert as a web component (micro-lighter) that uses the browser's native Highlight API instead of manipulating the DOM. The base library is about 2 KB, with individual language definitions coming in even smaller, making it a lightweight option for infrequent highlighting needs.

_Anyone weighing lightweight syntax highlighting options can compare trade-offs like these on daily.dev._

## Similar posts on daily.dev

- [Web Components Are the Comeback Nobody Saw Coming](https://daily.dev/posts/web-components-are-the-comeback-nobody-saw-coming-5oxazwtym) · The New Stack · 109 upvotes · 13 comments
- [Web Components: The Framework-Free Renaissance](https://daily.dev/posts/web-components-the-framework-free-renaissance-lvucvixaf) · Hacker News · 65 upvotes · 5 comments
- [Chris’ Corner: Cool Things](https://daily.dev/posts/chris-corner-cool-things-mztntqn0i) · CodePen · 1 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#html](https://daily.dev/tags/html), [#web-components](https://daily.dev/tags/web-components)

[View this post on daily.dev](https://daily.dev/posts/chris-corner-web-components-fnnodm0nx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Chris’ Corner: Web Components","url":"https://daily.dev/posts/chris-corner-web-components-fnnodm0nx","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/chris-corner-web-components-fnnodm0nx"},"datePublished":"2026-09-23T14:39:26.030Z","dateModified":"2026-09-23T14:39:49.058Z","description":"A roundup of web component news and links, centered on Dave Rupert's new lightweight syntax highlighter, MicroLighter, which uses the browser's native...","image":"https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003","thumbnailUrl":"https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003","isAccessibleForFree":true,"articleSection":"CodePen","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"CodePen","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/codepen","url":"https://daily.dev/sources/codepen"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/chris-corner-web-components-fnnodm0nx","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,html,web-components","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"CodePen","item":"https://daily.dev/sources/codepen"},{"@type":"ListItem","position":3,"name":"Chris’ Corner: Web Components"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/chris-corner-web-components-fnnodm0nx#faq","mainEntity":[{"@type":"Question","name":"What does the $$$() shortcut do in Chrome DevTools?","acceptedAnswer":{"@type":"Answer","text":"$$$() in Chrome DevTools performs a query that traverses through Shadow DOM boundaries, unlike the more familiar $() which maps to querySelector and $$() which maps to querySelectorAll. This makes it possible to select elements nested inside shadow roots directly from the console without manually piercing each shadow boundary. Developers debugging shadow DOM heavy components can keep tips like this bookmarked on daily.dev."}},{"@type":"Question","name":"How can a label element reference a form control that's hidden inside a Shadow DOM?","acceptedAnswer":{"@type":"Answer","text":"A newly available technique allows targeting by reference across shadow boundaries, letting a real label element associate with a custom element like fancy-checkbox even though the actual input is encapsulated within a Shadow DOM and normally not visible to the label. It was tested working in Chrome, though cross-browser support is not confirmed. Design system builders wrestling with shadow DOM form accessibility can track solutions like this on daily.dev."}},{"@type":"Question","name":"What is MicroLighter and how small is it?","acceptedAnswer":{"@type":"Answer","text":"MicroLighter is a syntax highlighter built by Dave Rupert as a web component (micro-lighter) that uses the browser's native Highlight API instead of manipulating the DOM. The base library is about 2 KB, with individual language definitions coming in even smaller, making it a lightweight option for infrequent highlighting needs. Anyone weighing lightweight syntax highlighting options can compare trade-offs like these on daily.dev."}}]}
```

