/* Custom property does not inherit values */
inherits: false;
/* Custom property inherits values */
inherits: true;`inherits` CSS at-rule descriptor / notebook
`inherits` CSS at-rule descriptor
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
@property --my-color {
syntax: "<color>";
inherits: false;
initial-value: #c0ffee;
}window.CSS.registerProperty({
name: "--my-color",
syntax: "<color>",
inherits: false,
initialValue: "#c0ffee",
});