Skip to content

Instantly share code, notes, and snippets.

Created January 2, 2017 19:18
Show Gist options
  • Save anonymous/ebdee6951dd720389c342dd4851aa04f to your computer and use it in GitHub Desktop.
Save anonymous/ebdee6951dd720389c342dd4851aa04f to your computer and use it in GitHub Desktop.
Print `calc` result
/**
* Print `calc` result
*/
.block::before {
--a: 4;
--b: 5;
counter-reset: number calc(var(--a) * var(--b));
content: "4 × 5 = " counter(number);
}
<div class="block"></block>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment