Skip to content

Instantly share code, notes, and snippets.

@Malleys
Forked from anonymous/dabblet.css
Created November 7, 2018 00:29
Show Gist options
  • Save Malleys/102109445895f6bece870df06869cec8 to your computer and use it in GitHub Desktop.
Save Malleys/102109445895f6bece870df06869cec8 to your computer and use it in GitHub Desktop.
Print `calc` result
/**
* Print `calc` result
*/
.block::before {
--a: 44;
--b: 5;
counter-reset:
a var(--a)
b var(--b)
number calc(var(--a) * var(--b))
;
content: counter(a) " × " counter(b) " = " 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