gecko-dev/servo
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
..
components Bug 1631449 - Apply a grayscale filter to pages when monochrome. r=jwatt 2020-07-15 03:45:33 +00:00
ports/geckolib Bug 1506364 - Implement the prefers-contrast media-query. r=morgan,emilio 2020-06-29 17:46:12 +00:00
tests/unit Bug 1629359 - Update parking_lot to 0.10 r=kats 2020-04-12 19:14:43 +00:00
moz.build
rustfmt.toml