|
diff --git a/packages/tailwindcss-class-names/tests/extractClassNames.test.js b/packages/tailwindcss-class-names/tests/extractClassNames.test.js
index 7e7b6471ff2ee0ba50de454d6743490a152e5e01..fe8e04bf6ba717f7e2e1a52a79b06cca78fbbe7a 100644
--- a/packages/tailwindcss-class-names/tests/extractClassNames.test.js
+++ b/packages/tailwindcss-class-names/tests/extractClassNames.test.js
@@ -350,3 +350,24 @@ ],
},
})
})
+
+test('processes multiple properties of the same name', async () => {
+ const result = await processCss(`
+ .bg-red {
+ background-color: blue;
+ background-color: red;
+ }
+ `)
+
+ expect(result).toEqual({
+ context: {},
+ classNames: {
+ 'bg-red': {
+ __rule: true,
+ __context: [],
+ __scope: null,
+ 'background-color': ['blue', 'red'],
+ },
+ },
+ })
+})
|