<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Bold text cannot be unbolded when it uses a font weight under 600"
   href="https://bugs.webkit.org/show_bug.cgi?id=164149">164149</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Bold text cannot be unbolded when it uses a font weight under 600
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Text
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>steve&#64;suncitydesign.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>mmaxfield&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=293207" name="attach_293207" title="Repro.html">attachment 293207</a> <a href="attachment.cgi?id=293207&amp;action=edit" title="Repro.html">[details]</a></span>
Repro.html

Steps to reproduce:

1. Download attached Repro.html or go to <a href="https://jsfiddle.net/sk3bwkgx/">https://jsfiddle.net/sk3bwkgx/</a>
2. Select the bold text inside the red contenteditable region
3. Click the &quot;Toggle Bold&quot; button
4. Notice that the text does not become unbold

It seems like the browser is deciding that since the b/strong tags have a weight closer to normal than bold that the text is already &quot;unbolded&quot; even though visually and semantically that isn't the case. The browser should instead decide whether to unbold something based on the semantic tags involved in the selection.

This can be reproduced in Chrome/Safari/Firefox, but works correctly in IE11/Edge.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>