[Webkit-unassigned] [Bug 161678] New: CSS ::selection doesn't apply to <li> with nested list

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 6 23:36:23 PDT 2016


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

            Bug ID: 161678
           Summary: CSS ::selection doesn't apply to <li> with nested list
    Classification: Unclassified
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Macintosh
                OS: OS X 10.11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kevin at kevinchen.co

Created attachment 288104
  --> https://bugs.webkit.org/attachment.cgi?id=288104&action=review
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: https://jsfiddle.net/q4mm6g6c/

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160907/f91b4f46/attachment.html>


More information about the webkit-unassigned mailing list