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
22 lines
409 B
HTML
22 lines
409 B
HTML
<!DOCTYPE html>
|
|
<link rel="stylesheet" href="/fonts/ahem.css">
|
|
<style>
|
|
.container {
|
|
position: relative;
|
|
border: 1px solid;
|
|
}
|
|
|
|
.abs {
|
|
position: absolute;
|
|
background: purple;
|
|
opacity: 0.5;
|
|
bottom: 0px;
|
|
}
|
|
</style>
|
|
<div class="container">
|
|
<span style="font: 20px/1 Ahem;">hello
|
|
<span class="abs">hello</span>
|
|
<span style="vertical-align: top; font-size: 50px;">world</span>
|
|
</span>
|
|
</div>
|