From 23b22c542511ed3f42891e8fcdd26ffbaf350a76 Mon Sep 17 00:00:00 2001 From: Jonathan Gamble <101470903+schlawg@users.noreply.github.com> Date: Wed, 10 Apr 2024 16:51:16 -0500 Subject: [PATCH] export variable aliases with three hyphens --- src/render.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/render.ts b/src/render.ts index 06259a6f..00116fe6 100644 --- a/src/render.ts +++ b/src/render.ts @@ -191,7 +191,9 @@ export function updateBounds(s: State): void { s.dom.bounds.clear(); s.addDimensionsCssVarsTo?.style.setProperty('--cg-width', width + 'px'); + s.addDimensionsCssVarsTo?.style.setProperty('---cg-width', width + 'px'); s.addDimensionsCssVarsTo?.style.setProperty('--cg-height', height + 'px'); + s.addDimensionsCssVarsTo?.style.setProperty('---cg-height', height + 'px'); } const isPieceNode = (el: cg.PieceNode | cg.SquareNode): el is cg.PieceNode => el.tagName === 'PIECE';