<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>228540</bug_id>
          
          <creation_ts>2021-07-28 00:44:30 -0700</creation_ts>
          <short_desc>The computed value of the font-weight property should be a number</short_desc>
          <delta_ts>2021-07-28 04:13:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>214230</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Šime Vidas">sime.vidas</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gsnedders</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1779977</commentid>
    <comment_count>0</comment_count>
    <who name="Šime Vidas">sime.vidas</who>
    <bug_when>2021-07-28 00:44:30 -0700</bug_when>
    <thetext>Open this HTML document in Safari:

&lt;!doctype html&gt;
&lt;b&gt;lorem ipsum&lt;/b&gt;
&lt;script&gt;
  console.log(
    getComputedStyle(document.querySelector(&apos;b&apos;)).getPropertyValue(&apos;font-weight&apos;)
  )
&lt;/script&gt;

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

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

[1]: https://drafts.csswg.org/css-fonts/#font-weight-prop</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1780014</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-07-28 04:13:32 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 214230 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>