[Webkit-unassigned] [Bug 215359] New: @font-face font-weight descriptor should reject bolder and lighter
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 10 23:12:58 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=215359
Bug ID: 215359
Summary: @font-face font-weight descriptor should reject bolder
and lighter
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: taken.spc at gmail.com
Both "bolder" and "lighter" are not allowed for @font-face font-weight descriptor.
https://www.w3.org/TR/css-fonts-3/#descdef-font-weight
> Name: font-weight
> Value: normal | bold | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
https://drafts.csswg.org/css-fonts-4/#descdef-font-face-font-weight
> For: @font-face
> Value: auto | <font-weight-absolute> <font-weight-absolute>?
In WebKit, CSS parser accepts "bolder" and "lighter" and font resolver computes absolute weight from "bolder" and "lighter". This doesn't match other browsers behavior and the specs. Rejecting "bolder" and "lighter" improves interoperability and spec compliance.
WPT.fyi
https://wpt.fyi/results/css/css-fonts/variations/at-font-face-descriptors.html
Firefox's CSS parser rejects "bolder" and "lighter".
https://bugzilla.mozilla.org/show_bug.cgi?id=1454596
Chrome's CSS parser accepts "bolder" and "lighter" and its font resolver doesn't use "bolder" and "lighter" (I think it's confusing).
https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/css/font_face.cc;l=661-678;drc=b80faef62a12ac2966f19b014e845a8137718885
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200811/1e56742f/attachment.htm>
More information about the webkit-unassigned
mailing list