files/en-us/web/api/csspropertyrule/index.md
{{APIRef("CSS Properties and Values API")}}
The CSSPropertyRule interface of the CSS Properties and Values API represents a single CSS {{cssxref("@property")}} rule.
{{InheritanceDiagram}}
Inherits properties from its ancestor {{domxref("CSSRule")}}.
No specific methods; inherits methods from its ancestor {{domxref("CSSRule")}}.
This stylesheet contains a single {{cssxref("@property")}} rule. The first {{domxref("CSSRule")}} returned will be a CSSPropertyRule with the properties and values as defined by the rule in CSS.
@property --property-name {
syntax: "<color>";
inherits: false;
initial-value: #c0ffee;
}
const myRules = document.styleSheets[0].cssRules;
console.log(myRules[0]); // A CSSPropertyRule
{{Specifications}}
{{Compat}}