Summary: | Improve font-weight: lighter and bolder | ||
---|---|---|---|
Product: | WebKit | Reporter: | mitz |
Component: | Text | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED MOVED | ||
Severity: | Normal | CC: | darwin, jdaggett, joe.lencioni+webkit, mmaxfield, nickshanks, phiw2 |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 |
Description
mitz
2008-04-05 11:00:58 PDT
for an example, see attachment #12838 [details] & attachment #12839 [details] (Helvetica Neue "lighter x 2" should be same weight as FontWeight100) *** Bug 25914 has been marked as a duplicate of this bug. *** *** Bug 33559 has been marked as a duplicate of this bug. *** According to the spec, `bolder` and `lighter` snap to the weights of 100, 400, 700, and 900. The rules for this behavior is indicated by the chart at http://www.w3.org/TR/css3-fonts/#bolderlighter This was recently addressed in the Chromium project. Perhaps a similar solution exists in WebKit land? https://chromiumcodereview.appspot.com/15994009 That Chrome link describes how they don't use the font's weights to determine what "lighter" and "bolder" mean. They match the spec here, just like WebKit does. I've migrated this issue to https://github.com/w3c/csswg-drafts/issues/6847, because the spec needs to change before browsers can change. |