Bug 188150

Summary: Match in group of selectors forgotten when group contains more than one negation pseudo-class selectors (:not())
Product: WebKit Reporter: Daniel <code>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: bfulgham, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test case demonstrating the issue
none
Corrected test case none

Description Daniel 2018-07-29 13:48:07 PDT
Created attachment 346037 [details]
Test case demonstrating the issue

Please see the attached test case. There shouldn’t be any visible red.

In the test, WebKit should find a match in the first rule; but the match is subsequently ignored when the second rule doesn’t match. The test case work in recent versions of Chrome, Edge, and Firefox.

Issue present in Safari 11 and 12, and in GNOME Web (Epiphany) 3.28.
Comment 1 Daniel 2018-07-30 08:56:50 PDT
Created attachment 346061 [details]
Corrected test case

I uploaded the wrong version of the file. Adding correct test case now. Sorry!
Comment 2 Brent Fulgham 2022-07-15 13:33:52 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.
Comment 3 Radar WebKit Bug Importer 2022-07-15 13:34:03 PDT
<rdar://problem/97091339>