Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d06f594

Browse files
committed
Fix a test to declare line-height with Ahem.
This fixes the test align-self-static-position-005.html and its reference from recent PR web-platform-tests#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.)
1 parent 79b8e2d commit d06f594

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

css/css-align/abspos/align-self-static-position-005-ref.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
</style>
1616
<div class="container">
17-
<span style="font: 20px Ahem;">hello
17+
<span style="font: 20px/1 Ahem;">hello
1818
<span class="abs">hello</span>
1919
<span style="vertical-align: top; font-size: 50px;">world</span>
2020
</span>

css/css-align/abspos/align-self-static-position-005.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
</style>
2424
<div class="container">
25-
<span style="font: 20px Ahem;">hello
25+
<span style="font: 20px/1 Ahem;">hello
2626
<span class="abs">hello</span>
2727
<span style="vertical-align: top; font-size: 50px;">world</span>
2828
</span>

0 commit comments

Comments
 (0)