Inter, one file where WordPress listed two, and a pin heading on line
Inter (#11): the pages are set in Inter's variable font, served from the binary at /inter.woff2 as the icon is, with its OFL licence beside it in web/. Classic keeps Lucida Grande, the 2004 app's face. Double audio (#12): WordPress numbers each audio player on a page by adding ?_=N to its file's URL, so a post that embeds the file it encloses listed it twice, and it was downloaded twice. The parser keeps the first of an item's enclosures that differ only by that number. At startup the repeats already stored fold into the first; where only the repeat had been downloaded its file moves to the first rather than being deleted. Pin heading (#13): the rows' icon buttons kept the browser's side padding, which pushed their 16px icon 3px right of centre, and the heading's icon sat at the left of its column. Both are centred now, and the heading row takes the pixel of border the rows have, so every heading sits over its column. Closes #11, closes #12, closes #13. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -966,3 +966,20 @@ test('an admin can give a blog its Directory category', async ({ page }) => {
|
||||
for (const id of ['picture-blog', 'test-show']) await patch(id, null);
|
||||
expect((await listed('picture-blog')).category).toBeNull();
|
||||
});
|
||||
|
||||
test('the pinned heading sits over its pins, and the page is set in Inter', async ({ page }) => {
|
||||
await page.locator('.feed', { hasText: 'Test Show' }).click();
|
||||
await expect(page.locator('#eps .ep').first()).toBeVisible({ timeout: 20_000 });
|
||||
const boxes = {
|
||||
headCell: await page.locator('.ephead [data-sort="kept"]').boundingBox(),
|
||||
headIcon: await page.locator('.ephead [data-sort="kept"] svg').first().boundingBox(),
|
||||
rowCell: await page.locator('#eps .ep .fl').first().boundingBox(),
|
||||
rowIcon: await page.locator('#eps .ep .fl svg').first().boundingBox(),
|
||||
};
|
||||
const mid = b => b.x + b.width / 2;
|
||||
expect(Math.abs(mid(boxes.headIcon) - mid(boxes.rowIcon)), JSON.stringify(boxes)).toBeLessThan(1);
|
||||
|
||||
// From ipx itself, not a font service.
|
||||
expect((await page.request.get('/inter.woff2')).headers()['content-type']).toBe('font/woff2');
|
||||
expect(await page.evaluate(() => document.fonts.ready.then(() => document.fonts.check('14px Inter')))).toBe(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user