diff --git a/src/Util/TestDox/HtmlResultPrinter.php b/src/Util/TestDox/HtmlResultPrinter.php
index c57480327a2..354d045da9c 100644
--- a/src/Util/TestDox/HtmlResultPrinter.php
+++ b/src/Util/TestDox/HtmlResultPrinter.php
@@ -31,6 +31,8 @@ final class HtmlResultPrinter extends ResultPrinter
font-variant-ligatures: common-ligatures;
font-kerning: normal;
margin-left: 2em;
+ background-color: #ffffff;
+ color: #000000;
}
body > ul > li {
diff --git a/tests/end-to-end/loggers/testdox-html.phpt b/tests/end-to-end/loggers/testdox-html.phpt
index acc52412e71..e8b81b1d107 100644
--- a/tests/end-to-end/loggers/testdox-html.phpt
+++ b/tests/end-to-end/loggers/testdox-html.phpt
@@ -24,6 +24,8 @@ PHPUnit %s by Sebastian Bergmann and contributors.
font-variant-ligatures: common-ligatures;
font-kerning: normal;
margin-left: 2em;
+ background-color: #ffffff;
+ color: #000000;
}
body > ul > li {