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: NEW
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: 2017-12-21 21:51 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>