Visitor: Force light mode when printing pages

This commit is contained in:
Johannes Meyer 2022-12-07 10:54:54 +01:00
parent b1574e4bee
commit b89da2f865
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ use ReflectionProperty;
class Visitor extends Less_VisitorReplacing
{
const LIGHT_MODE_CSS = <<<'CSS'
@media (min-height: @prefer-light-color-scheme),
@media (min-height: @prefer-light-color-scheme), print,
(prefers-color-scheme: light) and (min-height: @enable-color-preference) {
%s
}

View File

@ -540,7 +540,7 @@ LESS
{
$this->assertEquals(
<<<CSS
@media (min-height: 999999px), (prefers-color-scheme: light) and (min-height: 999999px) {
@media (min-height: 999999px), print, (prefers-color-scheme: light) and (min-height: 999999px) {
:root {
--my-color: orange;
}