part #
::: section-content
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{target="_blank"} for a usage example. :::
Specifications #
::: _table #
Specification #
CSS Shadow Parts
[#
part-attr]{.small}
:::
Browser compatibility #
::: _table 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 No 60 13.1 73 73 79 52 13.4 11.0
:::
See also #
::: section-content
- All global attributes. :::
::: _attribution
© 2005–2023 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{._attribution-link}
:::