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.
Created attachment 346061 [details] Corrected test case I uploaded the wrong version of the file. Adding correct test case now. Sorry!
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.
<rdar://problem/97091339>