MDN self-hosted library · e01.org
CSS Houdini / notebook

CSS Houdini

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
:root {
  --background-color: blue;
}

.box {
  background-color: var(--background-color);
}
css
@property --background-color {
  syntax: "<color>";
  inherits: false;
  initial-value: blue;
}