Force shadow host containment with inline styles + contain: layout

Fixkamo-internal
Shipped
April 25, 2026 at 9:46 PM UTC
Author
kamo
Commit
27dd0ae

Class-based overflow-x-auto on the shadow host wasn't reliably winning against the shadow ':host { all: initial }' reset, so wide email content (fixed-width tables) was visually painting past the host's layout box and causing the 3-column-wide horizontal scrollbar. Switch to inline styles (highest author cascade) with explicit width: 100% (not auto) so intrinsic shadow content can't expand the host, and add contain: layout to fully isolate shadow tree layout from the light DOM. The host now reliably acts as a fixed-width scroll container for wide email bodies.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing