Bug 211108

Summary: Web Inspector: Use standardized `:is` CSS selector instead of `:matches`
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nikita Vasilyev <nvasilyev>
Status: ASSIGNED    
Severity: Normal CC: hi, inspector-bugzilla-changes
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch hi: review-, hi: commit-queue-

Nikita Vasilyev
Reported 2020-04-27 17:31:26 PDT
CSS Selectors Level 4 defines `:is` selector. https://www.w3.org/TR/selectors-4/#matches `:matches` is a deprecated alias for it. https://github.com/w3c/csswg-drafts/issues/3258 This is refactoring; it should have no user effects.
Attachments
Patch (109.81 KB, patch)
2020-04-27 17:41 PDT, Nikita Vasilyev
hi: review-
hi: commit-queue-
Nikita Vasilyev
Comment 1 2020-04-27 17:41:05 PDT
Devin Rousso
Comment 2 2020-04-28 12:09:17 PDT
Comment on attachment 397772 [details] Patch r-, as since `:matches` is allowed as an obsolete alias for `:is` there's no need to remove it. We should just prefer using `:is` going forward, and change previous uses as we come across them (same as how we treat usage of `var`).
Note You need to log in before you can comment on or make changes to this bug.