Skip to content

Commit fade3a6

Browse files
dholbertmoz-wptsync-bot
authored andcommitted
Adjust WPT fieldset-generated-content.html to better-target font styling.
Without this change, the test *results* are impossible to read (they're rendered with the Ahem font) when you run this test directly, because the test results are stored in nodes that get appended to the body, which means they inherit the body's "font" declaration. This avoids that problem by targeting the font CSS to a subtree of test content (which excludes the test results). Differential Revision: https://phabricator.services.mozilla.com/D264159 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1987504 gecko-commit: f69c37a305adf3592f7380921c0ff137c7acfce9 gecko-reviewers: layout-reviewers, hiro
1 parent ecfb2b3 commit fade3a6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-generated-content.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<script src=/resources/testharnessreport.js></script>
55
<link rel="stylesheet" href="/fonts/ahem.css">
66
<style>
7-
body {
7+
.wrapper {
88
/* Use Ahem to avoid fractional letter widths. */
99
font: 20px/1 Ahem;
1010
}
@@ -18,8 +18,10 @@
1818

1919
#test::before, #test::after { content:"X"; }
2020
</style>
21-
<fieldset id=test><legend>A</legend>Y</fieldset>
22-
<fieldset id=ref><legend>A</legend>XYX</fieldset>
21+
<div class="wrapper">
22+
<fieldset id=test><legend>A</legend>Y</fieldset>
23+
<fieldset id=ref><legend>A</legend>XYX</fieldset>
24+
</div>
2325
<script>
2426
test(() => {
2527
const testElm = document.querySelector('#test');

0 commit comments

Comments
 (0)