<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 - CSS ::selection doesn't apply to &lt;li&gt; with nested list"
   href="https://bugs.webkit.org/show_bug.cgi?id=161678">161678</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>CSS ::selection doesn't apply to &lt;li&gt; with nested list
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>Safari Technology Preview
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>OS X 10.11
          </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>CSS
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>kevin&#64;kevinchen.co
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=288104" name="attach_288104" title="test page">attachment 288104</a> <a href="attachment.cgi?id=288104&amp;action=edit" title="test page">[details]</a></span>
test page

Summary:
The CSS in a ::selection isn't applied to the contents of &lt;li&gt; if the &lt;li&gt; has a child that is another list.

For example, selection wouldn't apply to the text &quot;2&quot; because of the &lt;ul&gt; containing &quot;2.1&quot; and &quot;2.2&quot;

  &lt;ul&gt;
    &lt;li&gt;1&lt;/li&gt;
    &lt;li&gt;2
      &lt;ul&gt;
        &lt;li&gt;2.1&lt;/li&gt;
        &lt;li&gt;2.2&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;3&lt;/li&gt;
  &lt;/ul&gt;

Demo: <a href="https://jsfiddle.net/q4mm6g6c/">https://jsfiddle.net/q4mm6g6c/</a>

Regression:
- This occurs in the Safari 10.0 (12602.1.50.0.8) from the latest Sierra build, and Safari Tech Preview Release 12 (Safari 10.0, WebKit 12603.1.3).
- I was unable to test with nightlies because I am running Sierra.

Notes:
- Attached some screenshots of the behavior in various browsers
- Attached the demo page</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>