[wpt-sync] Sync PR 51988 - Fix the Ahem assumption test
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 51988 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/51988
Details from upstream follow.
Sam Sneddon <gsnedders@apple.com> wrote:
Fix the Ahem assumption test
8624366d45 tried to change the test in line with the modern requirement that Ahem is not a system font.
However, in actuality it just ended up testing that:
<span style="font: 15px/1 Ahem">X</span>
!=
<span style="font-size: 15px; line-height: 1;">X</span>
This test fails in Safari, because unsurprisingly
15px / 15px serif
is the same as15px / 15px Ahem
when Ahem is not installed. It seems like it is actually testing that Ahem is installed, or at least is not a no-op.Instead, simply test that Ahem's X is the same as serif's X, as this should be true without the font installed.
Assignee | ||
Updated•9 days ago
|
Description
•