Skip to content

Commit 92c2d1c

Browse files
add @namespace edge case to tests
Co-authored-by: Jordan Pittman <[email protected]>
1 parent f7f38a8 commit 92c2d1c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/tailwindcss/src/ast.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ it('should not emit empty rules once optimized', () => {
141141
@charset 'UTF-8';
142142
@layer foo, bar, baz;
143143
@custom-media --modern (color), (hover);
144+
@namespace 'http://www.w3.org/1999/xhtml';
144145
`)
145146

146147
expect(toCss(ast)).toMatchInlineSnapshot(`
@@ -172,13 +173,15 @@ it('should not emit empty rules once optimized', () => {
172173
@charset 'UTF-8';
173174
@layer foo, bar, baz;
174175
@custom-media --modern (color), (hover);
176+
@namespace 'http://www.w3.org/1999/xhtml';
175177
"
176178
`)
177179

178180
expect(toCss(optimizeAst(ast))).toMatchInlineSnapshot(`
179181
"@charset 'UTF-8';
180182
@layer foo, bar, baz;
181183
@custom-media --modern (color), (hover);
184+
@namespace 'http://www.w3.org/1999/xhtml';
182185
"
183186
`)
184187
})

0 commit comments

Comments
 (0)