We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 026c6bf commit 68c3c2eCopy full SHA for 68c3c2e
packages/rrweb-snapshot/test/css.test.ts
@@ -119,6 +119,16 @@ describe('css parser', () => {
119
expect(out3).toEqual('[data-aa\\:other] { color: red; }');
120
});
121
122
+ it('parses nested commas in selectors correctly', () => {
123
+ const result = parse(
124
+ `
125
+body > ul :is(li:not(:first-of-type) a:hover, li:not(:first-of-type).active a) {
126
+ background: 'red';
127
+}
128
+`);
129
+ expect((result.stylesheet!.rules[0] as Rule)!.selectors!.length).toEqual(1);
130
+ });
131
+
132
it('parses imports with quotes correctly', () => {
133
const out1 = escapeImportStatement({
134
cssText: `@import url("/foo.css;900;800"");`,
0 commit comments