From b91f42e924d13da66e8689f230983e0e98c72c9f Mon Sep 17 00:00:00 2001 From: John Hefferman Date: Thu, 31 Jul 2025 12:32:06 -0600 Subject: [PATCH 1/4] fix: dudupe light scoped issue, hydration coverage --- .../dynamic/expected.html | 34 +++++----- .../static/expected.html | 18 +++--- .../with-scoped-styles/dynamic/expected.html | 64 +++++++++---------- .../with-scoped-styles/static/expected.html | 18 +++--- .../integration-karma/helpers/test-hydrate.js | 3 + .../scripts/karma-configs/hydration/base.js | 4 +- .../scripts/karma-plugins/hydration-tests.js | 11 +++- .../karma-plugins/transform-framework.js | 2 + .../child-scoped-styles/index.spec.js | 21 ++---- .../child-scoped-styles/x/child/child.html | 2 +- .../x/child/child.scoped.css | 4 +- .../child-scoped-styles/x/main/main.html | 1 + packages/@lwc/ssr-client-utils/src/index.ts | 11 ++++ packages/@lwc/ssr-runtime/src/styles.ts | 3 +- packages/@lwc/template-compiler/README.md | 1 + .../test-utils/swap-lwc-style-for-style.ts | 3 +- 16 files changed, 110 insertions(+), 90 deletions(-) diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/expected.html b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/expected.html index ce2037c3a3..9c410df499 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/expected.html +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/expected.html @@ -17,7 +17,7 @@