@@ -177,41 +177,6 @@ describe('Parser Options', () => {
177177 } )
178178 } )
179179
180- describe ( 'Backwards compatibility' , ( ) => {
181- it ( 'should support legacy boolean parameter for skip_comments' , ( ) => {
182- const parser = new Parser ( '/* comment */ body { color: red; }' , true )
183- const root = parser . parse ( )
184- const rule = root . first_child
185-
186- // Should parse normally with comments skipped
187- expect ( rule ) . not . toBeNull ( )
188- const selector = rule ?. first_child
189- expect ( selector ?. text ) . toBe ( 'body' )
190- } )
191-
192- it ( 'should support legacy boolean false parameter' , ( ) => {
193- const parser = new Parser ( '/* comment */ body { color: red; }' , false )
194- const root = parser . parse ( )
195-
196- // First child should be comment
197- const comment = root . first_child
198- expect ( comment ) . not . toBeNull ( )
199- } )
200-
201- it ( 'should parse values and selectors with legacy parameter' , ( ) => {
202- const parser = new Parser ( css , true )
203- const root = parser . parse ( )
204- const rule = root . first_child
205- const selector = rule ?. first_child
206- const declaration = selector ?. next_sibling
207-
208- // Both should be parsed by default
209- // Simple selector returns NODE_SELECTOR directly
210- expect ( selector ?. type ) . toBe ( NODE_SELECTOR )
211- expect ( declaration ?. has_children ) . toBe ( true )
212- } )
213- } )
214-
215180 describe ( 'Performance optimization use cases' , ( ) => {
216181 it ( 'should skip value parsing for fast property name extraction' , ( ) => {
217182 const css = `
0 commit comments