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

> Unfortunately neither "bolder" nor "lighter" move to the next weight variation within a variable font, but act binary as "bold" or "un-bold" aka "normal". That was fine when most ordinary fonts typically featured a binary state for normal/bold as well.

And tat is the crux of the issue. `bolder` and `lighter` date from a time when:

- CSS was vastly simpler and less used than now
- there were no WebFonts
- there were no variable fonts
- CSS was seen as a set of "hints" to affect presentation, not a completer visual design system

Looking at the definition (`bolder` means _bolder, if available, or the same weight, but **at least not lighter** _) which is as close to meaningless as can be while still being somewhat testable, I would class the `bolder` and `lighter` keywords as legacy compat features only.

Achieving the desired effect using calc, though, seems like a much better approach.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2764#issuecomment-579259615 using your GitHub account

Received on Tuesday, 28 January 2020 14:02:14 UTC