gecko-dev/layout/reftests/printing
Emilio Cobos Álvarez d275fd6251 Bug 1631449 - Apply a grayscale filter to pages when monochrome. r=jwatt
This hooks the "monochrome" media query and co to the
nsIPrintSettings.printInColor setting.

This print setting we're using is not exposed in the print preview UI,
but you can test it setting the print.print_in_color preference to
"false", and then print preview will correctly show up greyscale'd.

Once this lands, the UI folks just have to use it as they see fit :)

I would've liked to add a proper rendering test, but the print reftests
check only whether the PDF text matches.

I could add a test to printpreview_helper.xhtml, but I'm refactoring
that file in bug 1648064 so I'd rather wait a bit and add it in a
separate bug. The test for the media feature should make sure that we
test that code path at least.

Differential Revision: https://phabricator.services.mozilla.com/D83552
2020-07-15 03:45:33 +00:00
..
print.css
reftest.list
test-async-print.html
test-color-text-01.html
test-missing-text-noref.html
test-missing-text.html
test-number-of-pages-noref.html
test-number-of-pages.html
test-print-range-ref.html
test-print-range.html
test-print-selection.html
test-print-single-page-noref.html
test-print-single-page.html
test-text-noref.html
test-text-ref.html
test-text.html
test-unexpected-text-noref.html
test-unexpected-text.html