[Webkit-unassigned] [Bug 228540] New: The computed value of the font-weight property should be a number

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 28 00:44:30 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=228540

            Bug ID: 228540
           Summary: The computed value of the font-weight property should
                    be a number
           Product: WebKit
           Version: Safari 14
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sime.vidas at gmail.com

Open this HTML document in Safari:

<!doctype html>
<b>lorem ipsum</b>
<script>
  console.log(
    getComputedStyle(document.querySelector('b')).getPropertyValue('font-weight')
  )
</script>

Online version: https://output.jsbin.com/canijip/quiet

In Chrome and Firefox, the console logs "700", but in Safari it logs "bold". The CSS Fonts specification [1] states that the computed value of the font-weight property is a number, so Safari should return "700" like the other browsers.

[1]: https://drafts.csswg.org/css-fonts/#font-weight-prop

-- 
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/20210728/c43d4d5d/attachment.htm>


More information about the webkit-unassigned mailing list