fix(h5): enlarge regular brand text for optical alignment

This commit is contained in:
xsl
2026-10-13 22:40:04 +08:00
parent fc711e3b1c
commit 61a7f7c726
3 changed files with 8 additions and 5 deletions
+4 -2
View File
@@ -27,9 +27,11 @@ try {
return [s.fontFamily, s.fontSize, s.fontWeight, s.lineHeight];
});
});
assert.deepEqual(fonts[0], fonts[1], root + ': identical English font settings');
assert.equal(fonts[0][1], '23px');
assert.equal(fonts[0][0], fonts[1][0], root + ': same font family');
assert.equal(fonts[0][1], '28px', 'lowercase brand has optical size compensation');
assert.equal(fonts[1][1], '23px', 'English tagline remains unchanged');
assert.equal(fonts[0][2], '400');
assert.equal(fonts[1][2], '400');
assert.match(await page.locator(root + ' .splash-slogan').getAttribute('aria-label'), /^1'me/);
}
const button = page.locator('#s-splash [data-action="open-privacy"]');