Styling the custom element with CSS parts
When WarGrid is used as the <war-grid> custom element with shadow DOM, key internal elements are exposed through part attributes. This allows ::part() styling without piercing encapsulation, and the part names form a documented, stable styling API.
Planned. This page shows the specification from issue #205. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A <war-grid> element with shadow DOM and a stylesheet panel.
Expected behavior
CSS typed against ::part() applies immediately. Highlighting a part shows every element carrying it, and state parts appear and disappear as state changes.
Planned API surface
<war-grid> elementpart names: header, header-cell, row, row-selected, cell, cell-focused, pinned-left, pinned-right, footer, overlayexportparts guidanceAcceptance criteria
- Every documented part name exists in the rendered shadow DOM (pending)
- State parts (row-selected, cell-focused) toggle with state (pending)
- Part names are listed in the API reference with a stability guarantee (pending)
- Tokens still cascade into the shadow root (pending)
- Nested custom elements forward parts via exportparts where documented (pending)