<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 <li> 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 <li> 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@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kevin@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&action=edit" title="test page">[details]</a></span>
test page
Summary:
The CSS in a ::selection isn't applied to the contents of <li> if the <li> has a child that is another list.
For example, selection wouldn't apply to the text "2" because of the <ul> containing "2.1" and "2.2"
<ul>
<li>1</li>
<li>2
<ul>
<li>2.1</li>
<li>2.2</li>
</ul>
</li>
<li>3</li>
</ul>
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>