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

@ -1062,6 +1062,10 @@ test("administrator navigates sections, manages mythic content and previews visu
expect(cardGlowVisual.map(({ side }) => side)).toEqual(["back", "face"]);
for (const glow of cardGlowVisual) expect(glow).toMatchObject({ display: "block", backface: "hidden", animation: "nebula-opening-card-glow-palette-in" });
for (const glow of cardGlowVisual) expect(glow.background).toContain("conic-gradient");
// La couronne et la lueur ne colorent que le contour : sans cette exclusion, qu'un minifieur peut retirer, l'aura remplit toute la zone.
const maskComposites = await mythicSurface.locator(":scope > .nebula-card-opening-crown-palette, :scope > .nebula-card-opening-glow-palette").evaluateAll((elements) => elements.map((element) => globalThis.getComputedStyle(element).maskComposite));
expect(maskComposites).toHaveLength(2);
for (const composite of maskComposites) expect(composite).toMatch(/^exclude\b/);
const mythicAuraPalettes = mythicSurface.locator(":scope > .nebula-card-opening-aura-palette, :scope > .nebula-card-opening-crown-palette");
await expect(mythicAuraPalettes).toHaveCount(2);
const auraPaletteVisual = await mythicSurface.locator(":scope > .nebula-card-opening-aura-palette").evaluate((element) => {