Bug 1964198 [wpt PR 52313] - Fix a test to declare line-height with Ahem.,

Automatic update from web-platform-tests
Fix a test to declare line-height with Ahem. (#52313)

This fixes the test align-self-static-position-005.html and its reference
from recent PR https://github.com/web-platform-tests/wpt/pull/52260 to declare
a line-height of `1` when specifying the Ahem font, per best practices at
https://web-platform-tests.org/writing-tests/ahem.html

Per that documentation: when using Ahem in a WPT, "An explicit (i.e., not
normal) line-height should also always be used")

This is needed in order for the test to pass in Firefox, since Gecko uses a
larger-than-1 value as the "normal" line-height for Ahem.)
--

wpt-commits: dd8bc79937cc33e720381c68b37af6254e301e8a
wpt-pr: 52313

Differential Revision: https://phabricator.services.mozilla.com/D248816
This commit is contained in:
Daniel Holbert
2025-05-12 09:13:34 +00:00
committed by aborovova@mozilla.com
parent e5f7c7d309
commit 0d9b7d3b07
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
}
</style>
<div class="container">
<span style="font: 20px Ahem;">hello
<span style="font: 20px/1 Ahem;">hello
<span class="abs">hello</span>
<span style="vertical-align: top; font-size: 50px;">world</span>
</span>

View File

@@ -22,7 +22,7 @@
}
</style>
<div class="container">
<span style="font: 20px Ahem;">hello
<span style="font: 20px/1 Ahem;">hello
<span class="abs">hello</span>
<span style="vertical-align: top; font-size: 50px;">world</span>
</span>