W3C home > Mailing lists > Public > www-style@w3.org > February 2019

[css-shadow-parts-1] First Public Working Draft of the CSS Shadow Parts Level 1

From: Fergal Daly <fergal@google.com>
Date: Tue, 5 Feb 2019 13:32:47 +0900
Message-ID: <CAAozHL=48xXNGQTFePgen9ZpXtvpXE-Zkrdip9rVXEDPwJ5jcg@mail.gmail.com>
To: www-style@w3.org
The CSS WG has published a First Public Working Draft of the CSS Shadow
Parts Level 1.


This new specification allows an author to specify that certain “parts” of
a shadow tree are exposed on the shadow host for styling by the outer page
(rather than being hidden away and only styleable by the component itself).
The new ::part() selector allows the outer page to refer to those exposed

This allows a web component author to get the encapsulation benefits of
using Shadow DOM for the internals of their component, while still allowing
parts of it to be styled with the full flexibility of normal CSS.

for a refresher on what Shadow DOM is, or the DOM spec (
https://dom.spec.whatwg.org/) for technical details.

Please review the draft, and send any comments to this mailing list,
<www-style@w3.org>, prefixed with [css-shadow-parts-1] (as I did on this
message) or (preferably) file them in the GitHub repository at

For the CSS WG,

Fergal Daly,
Tab Atkins.
Received on Tuesday, 5 February 2019 05:18:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:12 UTC