Bug 181078 - :matches() ignores complex selectors after the first one when matching for originating element of pseudo-element
Summary: :matches() ignores complex selectors after the first one when matching for or...
Status: RESOLVED DUPLICATE of bug 206654
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-12-20 23:20 PST by Xidorn Quan
Modified: 2020-01-24 00:03 PST (History)
3 users (show)

See Also:


Attachments
testcase (255 bytes, text/html)
2017-12-20 23:20 PST, Xidorn Quan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xidorn Quan 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.
Comment 1 Radar WebKit Bug Importer 2017-12-21 21:51:52 PST
<rdar://problem/36190933>
Comment 2 Antti Koivisto 2020-01-24 00:03:23 PST

*** This bug has been marked as a duplicate of bug 206654 ***