Simplify the hover replacement function (#1535)

Simplify the hover replacement function, which has been borrowed from postcss-pseudo-classes

Note: 'parses nested commas in selectors correctly' was failing after this PR, however I don't think that the previous behaviour was desirable, so have added a new test to formalize this expectation
This commit is contained in:
Eoghan Murray
2024-09-13 08:56:49 +01:00
committed by GitHub
parent 5fbb904edb
commit 04ee6eda57
3 changed files with 18 additions and 53 deletions

View File

@@ -0,0 +1,6 @@
---
"rrweb-snapshot": patch
"rrweb": patch
---
Slight simplification to how we replace :hover after #1458