fix: fondu du repli par masque CSS, indépendant du thème
Le dégradé vers --frss-background-color laissait une bande visible en thème sombre (fond de l'article différent). Durcit aussi reset.php des tests e2e (écriture atomique, attente de la revalidation opcache). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
07f936ae80
commit
ccb230d514
3 files changed
+23
-13
No files matched your search
@@ -113,3 +113,15 @@ test('config height is clamped', async ({ page }) => {
|
||||
expect(await text.evaluate((el) => getComputedStyle(el).maxHeight)).toBe('400px');
|
||||
expect(await text.evaluate((el) => el.getBoundingClientRect().height)).toBeLessThanOrEqual(400);
|
||||
});
|
||||
|
||||
test('fade is a theme-independent mask', async ({ page }) => {
|
||||
await page.goto(READER);
|
||||
const text = fluxByTitle(page, 1).locator('.text');
|
||||
const mask = await text.evaluate((el) => {
|
||||
const cs = getComputedStyle(el);
|
||||
return cs.maskImage || cs.webkitMaskImage;
|
||||
});
|
||||
expect(mask).toContain('linear-gradient');
|
||||
const overlay = await text.evaluate((el) => getComputedStyle(el, '::after').content);
|
||||
expect(overlay === 'none' || overlay === 'normal').toBeTruthy();
|
||||
});
|
||||
Reference in new issue
Block a user