Comment Comment by heycam Please note that the final syntax for CSS Variables changed recently, so in Firefox 31 and later, where the feature is enabled by default, you declare variables like this::root { --spacing: 16px; }and reference them like this:body { padding: var(--spacing); } parent heycam 12 years ago
:root { --spacing: 16px; }
and reference them like this:
body { padding: var(--spacing); }