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 | Status | Comment |
---|---|---|
Shadow Parts The definition of 'part' in that specification. |
Working Draft |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
part | Chrome Full support 73 | Edge Full support 79 | Firefox
Full support
72
| IE No support No | Opera Full support 60 | Safari Full support 13.1 | WebView Android Full support 73 | Chrome Android Full support 73 | Firefox Android No support No | Opera Android ? | Safari iOS Full support 13.4 | Samsung Internet Android No support No |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Experimental. Expect behavior to change in the future.
- Experimental. Expect behavior to change in the future.
- User must explicitly enable this feature.
- User must explicitly enable this feature.
See also
- All global attributes.