- From: Christoph Päper via GitHub <sysbot+gh@w3.org>
- Date: Tue, 28 Jan 2020 14:36:00 +0000
- To: public-css-archive@w3.org
With few additional tools, i. e. functions, authors could build individual stepping patterns.
```` css
:root {
--font-weights: 100, 200, 300, 400, 500, 600, 700, 800, 900;
--i: 4;
}
foo, bar {
font-weight: index(var(--i), var(--font-weights));
}
foo {
--i: max(var(--i) + 1, 9);
}
bar {
--i: min(var(--i) - 1, 1);
}
````
--
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2764#issuecomment-579274964 using your GitHub account
Received on Tuesday, 28 January 2020 14:36:02 UTC