« * K @joe.trusktr.io

Joe Pea @joe.trusktr.io

2026-11-15 03:31 UTC

Yep, this simplifies Custom Elements styles a lot (for elements with ShadowRoots)! One hack was to not set a value in :host style, and use a var() fallback on an internal --private-- var; a lot of now unnecessary boilerplate. No more of this inside scoped styles: --padding--: var(--padding, 10px)

Quoting @firefoxnightly.bsky.social: Starting with Firefox 162, Firefox Nightly now supports the CSS inherit() arbitrary substitution function, which allows authors to explicitly use the computed value of a custom property from the parent element. bugzilla.mozilla.org/2091710

7 likes, 0 reposts, 1 replies

3 Next post4 More from @joe.trusktr.ioBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup