check_css_shorthand
Detects risky CSS shorthand and var() combinations that cause silent failure when var() is undefined. Suggests decomposing into longhand properties.
Instructions
Detects risky CSS shorthand + var() combinations that can fail silently. When var() is mixed with literal values in shorthand properties (border, background, font, margin, etc.), if any var() is undefined the ENTIRE declaration fails — not just the dynamic part. Suggests decomposing into longhand properties.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cssText | Yes | The CSS code to check for risky shorthand + var() patterns. |