From fa8b474a81fd25737e79df960f7140d18cddd16a Mon Sep 17 00:00:00 2001 From: Ido Rosenthal Date: Tue, 24 Oct 2023 14:42:27 +0300 Subject: [PATCH] test: context property not overriding build-var reference --- packages/core/test/features/css-custom-property.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/test/features/css-custom-property.spec.ts b/packages/core/test/features/css-custom-property.spec.ts index bddac31e8..a435e4d04 100644 --- a/packages/core/test/features/css-custom-property.spec.ts +++ b/packages/core/test/features/css-custom-property.spec.ts @@ -772,6 +772,8 @@ describe(`features/css-custom-property`, () => { } .root { + --x: context property does not override property from origin; + /* @decl(local) prop: var(--entry-y) */ prop: value(y); @@ -797,7 +799,7 @@ describe(`features/css-custom-property`, () => { }); // JS exports - expect(exports.vars, `JS export`).to.eql({ y: `--entry-y` }); + expect(exports.vars, `JS export`).to.eql({ y: `--entry-y`, x: `--entry-x` }); }); it(`should preserve string value with custom property`, () => { const { sheets } = testStylableCore({