From def770ed9886171789f420d9cd3fcd79eaace91b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Thu, 19 Nov 2026 11:27:15 +0000 Subject: [PATCH] fix(core): read selector aliases only from what the compiler wrote (#8240) * test(producer): pin that an alias list written into authored HTML never reaches the CSS * test(producer): keep the alias test's comment within the line limit * fix(core): read selector aliases only from what the compiler wrote * test(producer): cover root-only pages and kept templates for authored alias lists * fix(core): also drop authored alias lists from kept templates and root-only renders * fix(core): walk each kept template once when dropping authored alias lists * chore(catalog): mirror the font requests of pages carrying the new alias installer * fix(core): leave linkedom template content uncopied when dropping authored alias lists * fix(core): drop authored alias lists inside SVG elements named template * test(core): count every element the alias cleanup processes * fix(core): visit each element once when dropping authored alias lists * chore(core): regenerate the inline selector alias installer * test(core): refresh page goldens for the regenerated installer --- .../__goldens__/pageBuild.preview.html | 162 +++++++++--------- .../__goldens__/pageBuild.render.html | 162 +++++++++--------- packages/core/src/compiler/index.ts | 1 + .../compiler/inlineSubCompositions.test.ts | 78 ++++++++- .../src/compiler/inlineSubCompositions.ts | 7 +- .../core/src/compiler/svgSelectorAliases.ts | 16 ++ .../generated/svg-selector-aliases-inline.ts | 2 +- .../core/src/runtime/compositionLoader.ts | 2 + .../src/services/htmlCompiler.parity.test.ts | 69 ++++++++ .../producer/src/services/htmlCompiler.ts | 4 +- scripts/catalog-fetch-mirror/index.json | 45 +++++ 11 files changed, 382 insertions(+), 166 deletions(-) diff --git a/packages/core/src/compiler/__goldens__/pageBuild.preview.html b/packages/core/src/compiler/__goldens__/pageBuild.preview.html index 5e313989ba..18f20ca331 100644 --- a/packages/core/src/compiler/__goldens__/pageBuild.preview.html +++ b/packages/core/src/compiler/__goldens__/pageBuild.preview.html @@ -182,38 +182,38 @@ window.__timelines.main = gsap.timeline({ paused: true });