part
The part global attribute contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element.
See our Shadow part example for a usage example.
Specifications
| Specification | 
|---|
| CSS Shadow Parts # part-attr | 
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
| part | 73 | 79 | 72 69-72 | No | 60 | 13.1 | 73 | 73 | No | ? | 13.4 | 11.0 | 
See also
- All global attributes.
    © 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
    https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part