mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
4e056ee9d7
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Vladimir Sheremet <[email protected]>
23 lines
962 B
Diff
23 lines
962 B
Diff
diff --git a/dist/rrweb-snapshot.js b/dist/rrweb-snapshot.js
|
|
--- a/dist/rrweb-snapshot.js
|
|
+++ b/dist/rrweb-snapshot.js
|
|
@@ -1536,6 +1536,18 @@ const pseudoClassPlugin = {
|
|
if (selector.includes(":hover")) {
|
|
rule2.selector += ",\n" + selector.replace(/:hover/g, ".\\:hover");
|
|
}
|
|
+ if (selector.includes(":active")) {
|
|
+ rule2.selector += ",\n" + selector.replace(/:active/g, ".\\:active");
|
|
+ }
|
|
+ if (selector.includes(":focus-visible")) {
|
|
+ rule2.selector += ",\n" + selector.replace(/:focus-visible/g, ".\\:focus-visible");
|
|
+ }
|
|
+ if (selector.includes(":focus-within")) {
|
|
+ rule2.selector += ",\n" + selector.replace(/:focus-within/g, ".\\:focus-within");
|
|
+ }
|
|
+ if (/:focus(?![-\w])/.test(selector)) {
|
|
+ rule2.selector += ",\n" + selector.replace(/:focus(?![-\w])/g, ".\\:focus");
|
|
+ }
|
|
});
|
|
}
|
|
};
|