Bug 118622

Summary: Match spec for font-weight: bolder|lighter
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, dino, enrica, kling, koivisto
Priority: P2 Keywords: BlinkMergeCandidate
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Ryosuke Niwa
Reported 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).
Attachments
Ahmad Saleem
Comment 1 2022-06-24 00:46:39 PDT
I took a test case from Chrome patch and then changed it into following fiddle: https://jsfiddle.net/fjsp6u7g/show It is matching output across all browsers. Is it something fixed along the ways? Can this be marked as "RESOLVED CONFIGURATION CHANGED? Thanks!
Ryosuke Niwa
Comment 2 2022-06-24 11:29:45 PDT
Yup, all browsers match.
Note You need to log in before you can comment on or make changes to this bug.