diff --git a/src/__tests__/compiler/property.test.ts b/src/__tests__/compiler/property.test.ts index 11d7b564..b3cfb2dc 100644 --- a/src/__tests__/compiler/property.test.ts +++ b/src/__tests__/compiler/property.test.ts @@ -382,6 +382,15 @@ test("the last @property declaration of a name decides inherits", () => { expect(nonInheritingLast.stylesheet().vp).toStrictEqual([["flip", false]]); }); +test("an ignored @property leaves the earlier registration of its name", () => { + const result = compile(` +@property --x { syntax: ""; inherits: false; initial-value: 3px; } +@property --x { syntax: ""; inherits: true; initial-value: 2em; } +`).stylesheet(); + + expect(result.vp).toStrictEqual([["x", false, 3]]); +}); + test.each([ ["