#CSS Shadow Parts brings a new CSS selector (::part()) to enable stylistic customization of Web components: #WebComponents creators get to identify which part of the Shadow DOM they create can have their style customized in the hosting page.
w3.org/TR/css-shadow-parts-1…
This tweet is unavailable
2
10
4
27
For instance, an <hello-wolrd> component defined with
<template>Hello <span part=name>World</span></template>
could be styled in a page using the compenent with
hello-world::part(name) { color: red;}
1
2
No implementation yet, but @GoogleChromeDev has ongoing work on it bugs.chromium.org/p/chromium…
1
1
As usual, the editors draft drafts.csswg.org/css-shadow-… is maintained in github in the @csswg repository of specs where issues and feedback can be brought github.com/w3c/csswg-drafts/…
Nov 15, 2018 · 11:48 AM UTC
2
