Re: [csswg-drafts] [css-fonts] font-weight: bolder and lighter are counter-intuitive (#2764)

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