Skip to content

Commit 06e9955

Browse files
clydinmgechev
authored andcommitted
test(@angular-devkit/build-angular): ensure autoprefixed global CSS imports
1 parent 537b314 commit 06e9955

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/angular_devkit/build_angular/test/browser/styles_spec_large.ts

+8
Original file line numberDiff line numberDiff line change
@@ -282,15 +282,23 @@ describe('Browser Builder styles', () => {
282282
it(`uses autoprefixer`, async () => {
283283
host.writeMultipleFiles({
284284
'src/styles.css': tags.stripIndents`
285+
@import url(imported-styles.css);
285286
/* normal-comment */
286287
/*! important-comment */
287288
div { flex: 1 }`,
289+
'src/imported-styles.css': tags.stripIndents`
290+
/* normal-comment */
291+
/*! important-comment */
292+
section { flex: 1 }`,
288293
'.browserslistrc': 'IE 10',
289294
});
290295

291296
const overrides = { extractCss: true, optimization: false };
292297
const { files } = await browserBuild(architect, host, target, overrides);
293298
expect(await files['styles.css']).toContain(tags.stripIndents`
299+
/* normal-comment */
300+
/*! important-comment */
301+
section { -ms-flex: 1; flex: 1 }
294302
/* normal-comment */
295303
/*! important-comment */
296304
div { -ms-flex: 1; flex: 1 }`);

0 commit comments

Comments
 (0)