Bug 118622 - Match spec for font-weight: bolder|lighter
Summary: Match spec for font-weight: bolder|lighter
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: BlinkMergeCandidate
Depends on:
Reported: 2013-07-12 16:13 PDT by Ryosuke Niwa
Modified: 2022-06-24 11:29 PDT (History)
6 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-07-12 16:13:07 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/3256e906a22349f99102fdafc4e00a0989f15dc9

Currently, bolder and lighter change font-weight in a non-compliant way
The spec (http://www.w3.org/TR/css3-fonts/#bolderlighter) defines
exactly what the computed values should be given the inherited weight
values, so we should match those.

The removed FIXME's for selecting the next lightest/heaviest weight from
the used font family seems to refer to behaviour from
CSS1 (http://www.w3.org/TR/CSS1/#font-weight), while this is replaced
with a simpler procedure for resolving bolder and lighter in font weights
in CSS2 (http://www.w3.org/TR/CSS2/fonts.html#propdef-font-weight) and
CSS3 (link above).
Comment 1 Ahmad Saleem 2022-06-24 00:46:39 PDT
I took a test case from Chrome patch and then changed it into following fiddle:


It is matching output across all browsers. Is it something fixed along the ways? Can this be marked as "RESOLVED CONFIGURATION CHANGED? Thanks!
Comment 2 Ryosuke Niwa 2022-06-24 11:29:45 PDT
Yup, all browsers match.