Skip to content

Commit

Permalink
Improve Testdox HTML styling on custom browser settings
Browse files Browse the repository at this point in the history
Browsers support custom colour settings.
Some people might change default text and background colour.

The report defines custom colour for successful and failed tests.
It should therefore ensure that those colours work as expected.
Background colour and default text colour are set in addition.
This ensures an expected end result, no matter what colours might be set as defaults.
  • Loading branch information
DanielSiepmann authored and sebastianbergmann committed Sep 6, 2021
1 parent 9deefba commit f24f66b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Util/TestDox/HtmlResultPrinter.php
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions tests/end-to-end/loggers/testdox-html.phpt
Expand Up @@ -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 {
Expand Down

0 comments on commit f24f66b

Please sign in to comment.