Bug 118622
Summary: | Match spec for font-weight: bolder|lighter | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | CSS | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
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
Yup, all browsers match.