From 6bd0b5d870ef197b1ff6d3d50d17944444c31a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Thu, 19 Nov 2026 16:15:41 +0000 Subject: [PATCH] fix(core): keep SVG selector alias growth within the compile budget (#8238) * test(core): pin that selector alias growth is charged while it is built * fix(core): keep SVG selector alias growth within the compile budget * fix(core): charge renamed-id selector growth too, and settle to the sheet's real growth * chore(core): regenerate the selector alias installer and page goldens * test(core): build the alias growth fixture from compiler-written aliases * test(core): trip the alias budget only in the selector rewrite * test(core): rewrite an escaped id with exactly its growth left * fix(core): charge a renamed id against the token it replaces * chore(core): regenerate the selector alias installer and page goldens --- .../__goldens__/pageBuild.preview.html | 642 +++++++++--------- .../__goldens__/pageBuild.render.html | 642 +++++++++--------- .../compiler/inlineSubCompositions.test.ts | 47 ++ .../src/compiler/inlineSubCompositions.ts | 29 +- .../core/src/compiler/selectorIdTokens.ts | 4 +- .../src/compiler/svgIdNamespacing.test.ts | 95 +++ .../core/src/compiler/svgIdNamespacing.ts | 16 +- .../core/src/compiler/svgSelectorAliases.ts | 18 +- .../generated/svg-selector-aliases-inline.ts | 2 +- 9 files changed, 845 insertions(+), 650 deletions(-) diff --git a/packages/core/src/compiler/__goldens__/pageBuild.preview.html b/packages/core/src/compiler/__goldens__/pageBuild.preview.html index 18f20ca331..baa7223d71 100644 --- a/packages/core/src/compiler/__goldens__/pageBuild.preview.html +++ b/packages/core/src/compiler/__goldens__/pageBuild.preview.html @@ -161,12 +161,12 @@ window.__timelines.main = gsap.timeline({ paused: true });