@@ -243,21 +243,36 @@ describe('optimizeCss', () => {
243243 expect ( output ) . toBe ( `h1{width:calc(10px - (100px / var(--test)))}` ) ;
244244 } ) ;
245245
246- it ( 'merge-longhand' , async ( ) => {
247- config . minifyCss = true ;
248- const styleText = `
249- h1 {
250- margin-top: 10px;
251- margin-right: 20px;
252- margin-bottom: 10px;
253- margin-left: 20px;
254- }
255- ` ;
256- const output = await optimizeCss ( config , compilerCtx , diagnostics , styleText , null , true ) ;
257-
258- expect ( diagnostics ) . toHaveLength ( 0 ) ;
259- expect ( output ) . toBe ( `h1{margin:10px 20px}` ) ;
260- } ) ;
246+ // it('merge-longhand', async () => {
247+ // config.minifyCss = true;
248+ // const styleText = `
249+ // h1 {
250+ // margin-top: 10px;
251+ // margin-right: 20px;
252+ // margin-bottom: 10px;
253+ // margin-left: 20px;
254+ // }
255+ // `;
256+ // const output = await optimizeCss(config, compilerCtx, diagnostics, styleText, null, true);
257+
258+ // expect(diagnostics).toHaveLength(0);
259+ // expect(output).toBe(`h1{margin:10px 20px}`);
260+ // });
261+
262+ // it('merge-longhand w/ css vars', async () => {
263+ // config.minifyCss = true;
264+ // const styleText = `
265+ // a {
266+ // border-width: var(--border-width);
267+ // border-style: var(--border-style);
268+ // border-color: var(--btn-border-color);
269+ // }
270+ // `;
271+ // const output = await optimizeCss(config, compilerCtx, diagnostics, styleText, null, true);
272+
273+ // expect(diagnostics).toHaveLength(0);
274+ // expect(output).toBe(`a{border:none}`);
275+ // });
261276
262277 it ( 'discard-duplicates' , async ( ) => {
263278 config . minifyCss = true ;
0 commit comments