CSS Stacking Context and Paint Order Inspector
css-stacking-context-and-paint-order-inspectorUI developers need to know why an element is behind another element, clipped unexpectedly, or trapped inside a stacking context.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"css_snippet": "<css_snippet>",
"html_snippet": "<html_snippet>",
"selected_element": "<selected_element>",
"show_paint_order": "<show_paint_order>",
"show_stacking_context_chain": "<show_stacking_context_chain>"
},
"name": "css-stacking-context-and-paint-order-inspector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css_snippet | Yes | Must be a non-empty CSS text snippet. Ignore unsupported at-rules gracefully and continue parsing what can be understood. | |
| html_snippet | Yes | Must be a non-empty HTML text snippet. The tool must parse a static DOM tree from this input only. | |
| selected_element | Yes | Must identify exactly one element in the provided HTML. Accept a CSS selector or element path string. If it matches zero or multiple elements, return a selection error. | |
| show_paint_order | Yes | Boolean flag controlling whether the paint order trace is included in the result. | |
| show_stacking_context_chain | Yes | Boolean flag controlling whether the stacking context chain is included in the result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| likely_fix_hints | No | ||
| paint_order_trace | No | ||
| diagnostic_summary | No | ||
| layering_explanation | No | ||
| stacking_context_chain | No | ||
| clipping_and_containment_warnings | No |