font-weight: bolder and lighter are not computed correctly
There's no code to derive computed values for font-weight
from the inherited one for bolder
and lighter
; they get unconditionally resolved to incorrect Pango values:
impl From<FontWeightSpec> for pango::Weight {
fn from(w: FontWeightSpec) -> pango::Weight {
match w {
FontWeightSpec::Bolder => pango::Weight::Ultrabold,
FontWeightSpec::Lighter => pango::Weight::Light,
See https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#propdef-font-weight for the rules.