fune/servo/components/style
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
..
counter_style Bug 1646546 - Switch all callsites of try() to try_parse() in the style crate. r=boris 2020-06-17 22:27:37 +00:00
gecko Bug 1631449 - Apply a grayscale filter to pages when monochrome. r=jwatt 2020-07-15 03:45:33 +00:00
gecko_bindings Bug 1646546 - Port the style crate to rust 2018. r=boris 2020-06-17 23:40:30 +00:00
gecko_string_cache
invalidation Bug 1646811 - Sync some comment changes from servo. 2020-06-18 18:14:10 +00:00
media_queries Bug 1506364 - Implement the prefers-contrast media-query. r=morgan,emilio 2020-06-29 17:46:12 +00:00
properties Bug 1650189 - Fix an off-by-one in the transition property iterator. r=mrobinson 2020-07-06 16:26:20 +00:00
rule_tree
servo Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame 2020-06-22 09:45:40 +00:00
sharing Bug 1646811 - servo: Include animations and transitions in the cascade. 2020-06-18 18:12:14 +00:00
stylesheets Bug 1646546 - Switch all callsites of try() to try_parse() in the style crate. r=boris 2020-06-17 22:27:37 +00:00
use_counters
values Bug 1650259 - Remove unused function on Appearance. r=emilio 2020-07-03 04:11:18 +00:00
animation.rs Bug 1646811 - Fix gecko build. 2020-06-18 18:14:29 +00:00
applicable_declarations.rs
attr.rs
author_styles.rs
bezier.rs
bloom.rs
build.rs Bug 1646811 - Remove some unused extern crate declarations now that style is in rust 2018. 2020-06-18 18:14:24 +00:00
build_gecko.rs Bug 1646546 - Port the style crate to rust 2018. r=boris 2020-06-17 23:40:30 +00:00
Cargo.toml Bug 1633410 - Back out bug 1631721. 2020-06-18 15:25:33 +00:00
context.rs Bug 1646811 - servo: Add DocumentAnimationSet and AnimationSetKey. 2020-06-18 18:14:02 +00:00
custom_properties.rs Bug 1646546 - Switch all callsites of try() to try_parse() in the style crate. r=boris 2020-06-17 22:27:37 +00:00
data.rs
dom.rs Bug 1646811 - Fix gecko build. 2020-06-18 18:14:29 +00:00
dom_apis.rs
driver.rs
element_state.rs Bug 1646811 - Sync some comment changes from servo. 2020-06-18 18:14:10 +00:00
encoding_support.rs Bug 1646811 - Remove some unused extern crate declarations now that style is in rust 2018. 2020-06-18 18:14:24 +00:00
error_reporting.rs
font_face.rs Bug 1646546 - Switch all callsites of try() to try_parse() in the style crate. r=boris 2020-06-17 22:27:37 +00:00
font_metrics.rs
global_style_data.rs
hash.rs Bug 1633410 - Back out bug 1631721. 2020-06-18 15:25:33 +00:00
lib.rs Bug 1646811 - Remove some unused extern crate declarations now that style is in rust 2018. 2020-06-18 18:14:24 +00:00
logical_geometry.rs
macros.rs
matching.rs Bug 1646811 - Fix gecko build. 2020-06-18 18:14:29 +00:00
parallel.rs
parser.rs
README.md
rule_cache.rs
rule_collector.rs Bug 1646811 - servo: Combine AnimationAndTransitionDeclarations and AnimationRules. 2020-06-18 18:14:07 +00:00
scoped_tls.rs
selector_map.rs Bug 1633410 - Back out bug 1631721. 2020-06-18 15:25:33 +00:00
selector_parser.rs
shared_lock.rs
str.rs
style_adjuster.rs Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame 2020-06-22 09:45:40 +00:00
style_resolver.rs Bug 1646811 - Fix gecko build. 2020-06-18 18:14:29 +00:00
stylesheet_set.rs
stylist.rs Bug 1646811 - servo: Combine AnimationAndTransitionDeclarations and AnimationRules. 2020-06-18 18:14:07 +00:00
thread_state.rs
traversal.rs Bug 1646811 - servo: Include animations and transitions in the cascade. 2020-06-18 18:12:14 +00:00
traversal_flags.rs

servo-style

Style system for Servo, using rust-cssparser for parsing.