Visitor: Force light mode when printing pages
This commit is contained in:
parent
b1574e4bee
commit
b89da2f865
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue