Drop the backdrop blurs behind animated Cards effects
A full-screen backdrop-filter is recomputed on every frame of a card animated above it, which made mythic cards in modals far slower than in a page. Modals showing a card and the opening screen now use denser backgrounds instead, and other modals keep their blur. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9ce0c3e33a
commit
8e373c024d
2 changed files with 9 additions and 1 deletions
|
|
@ -266,6 +266,8 @@ test("player opens and reveals a three-card pack", async ({ page }) => {
|
|||
await page.getByRole("button", { name: "Ouvrir ce paquet : La Nébuleuse Originelle", exact: true }).click();
|
||||
// L'étape d'ouverture garde le hero, affiche les probabilités et ne propose le retour qu'une fois les cartes révélées.
|
||||
await expect(page.locator(".nebula-player-hero")).toBeVisible();
|
||||
// Les particules passent sous la barre du haut : son flou serait recalculé à chaque image de l'animation.
|
||||
await expect(page.locator(".topbar")).toHaveCSS("backdrop-filter", "none");
|
||||
const openingOdds = page.getByRole("list", { name: "Probabilités" }).getByRole("listitem");
|
||||
await expect(openingOdds).toHaveCount(5);
|
||||
await expect(openingOdds.first()).toContainText(/Commun.*%/);
|
||||
|
|
@ -452,6 +454,8 @@ test("player opens and reveals a three-card pack", async ({ page }) => {
|
|||
await expectStandardCardFrame(largeCard, "lg");
|
||||
await expect(largeCard.locator(".nebula-card-copy p")).toBeVisible();
|
||||
await expect(largeCard.locator(".nebula-card-quantity")).toHaveCount(0);
|
||||
// Vérifié sur le build : le flou plein écran derrière une carte animée ruine sa fluidité.
|
||||
await expect(page.locator(".nds-modal-backdrop")).toHaveCSS("backdrop-filter", "none");
|
||||
const ownedCopiesLabel = detailDialog.getByText("Exemplaires possédés", { exact: true });
|
||||
await expect(ownedCopiesLabel).toBeVisible();
|
||||
await expect(ownedCopiesLabel).toHaveCSS("white-space", "nowrap");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue