Skip to content

Commit 4a57ee1

Browse files
committed
WebInspectorUI: Port missed one to replace CSS method 'matches' with 'is'
[GTK][WPE] Remote Web Inspector: replace deprecated CSS method 'matches' with 'is' https://bugs.webkit.org/show_bug.cgi?id=253180 Reviewed by Tim Nguyen. The :matches() selector was renamed to :is() in: w3c/csswg-drafts#3258 :matches() is no longer supported by some browsers (like Chromium and Firefox) and breaks Web Inspector UI in such browsers when we connect via HTTP. In case GTK/WPE WebKit, we use HTTP version of the inspector and it can be used from any browser.
1 parent 72c3bf0 commit 4a57ee1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Source/WebInspectorUI/Tools/Images

Source/WebInspectorUI/Tools/Images/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async function parseSVG(path) {
7676

7777
let imgs = [];
7878
if (!path.includes("#")) {
79-
let variants = dom.querySelectorAll(":root > :matches(svg, g)[id]");
79+
let variants = dom.querySelectorAll(":root > :is(svg, g)[id]");
8080
if (variants.length) {
8181
for (let variant of variants) {
8282
let target = variant.getAttribute("id");

0 commit comments

Comments
 (0)