Bug 181078

Summary: :matches() ignores complex selectors after the first one when matching for originating element of pseudo-element
Product: WebKit Reporter: Xidorn Quan <xidorn-webkit>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: koivisto, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
testcase none

Xidorn Quan
Reported 2017-12-20 23:20:56 PST
Created attachment 330012 [details] testcase See the testcase. The square should be green, while it renders red. Changing the ":matches(whatever, body #test)" to either ":matches(body #test)" or ":matches(whatever, #test)" makes the testcase works as expected.
Attachments
testcase (255 bytes, text/html)
2017-12-20 23:20 PST, Xidorn Quan
no flags
Radar WebKit Bug Importer
Comment 1 2017-12-21 21:51:52 PST
Antti Koivisto
Comment 2 2020-01-24 00:03:23 PST
*** This bug has been marked as a duplicate of bug 206654 ***
Note You need to log in before you can comment on or make changes to this bug.