Restore the mythic aura outline in production builds

Lightning CSS dropped mask-composite after the mask shorthand, so the crown and
glow filled their whole area in production only. The exclusion now lives in the
shorthand, with an E2E on the built site and a guard on the source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-05 22:31:50 +01:00
parent 361c4951ae
commit 33eda986e5
3 changed files with 15 additions and 2 deletions

View file

@ -24,6 +24,14 @@ const baseCatalog = prepareVersionedCatalog(rawCatalog);
const TEST_MYTHIC_VARIATIONS = [{ editionId: "mythic-card-pull-spectral-prism-solar", cardId: "mythic-card-pull", finishId: "spectral-prism-solar", status: "active" }];
const catalog = buildPublishedCatalog(baseCatalog, { variations: TEST_MYTHIC_VARIATIONS, collectionStates: INITIAL_COLLECTION_STATES, dropRates: INITIAL_DROP_RATES });
test("Sokko TCG styles keep mask compositions in a form the production minifier preserves", async () => {
const styles = await readFile("website/src/styles/_nebula-cards.scss", "utf8");
// Lightning CSS retire un mask-composite séparé qui suit le raccourci mask : l'effet n'apparaît alors qu'en production.
for (const rule of styles.split("\n").filter((line) => /(^|[\s;{])mask:/.test(line))) {
assert.doesNotMatch(rule, /mask-composite:/, rule.slice(0, 80));
}
});
test("Sokko TCG uses design system dropdowns instead of native selects", async () => {
const entries = await readdir("website/src/features/cards", { recursive: true });
const sources = entries.filter((entry) => entry.endsWith(".jsx"));