gecko-dev/servo/components/style_traits
Emilio Cobos Álvarez 562c44a853 Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-17 14:44:41 +00:00
..
Cargo.toml Bug 1680558 - Update cssparser to get ParserState in rule parser. r=heycam 2020-12-04 10:47:55 +00:00
arc_slice.rs
dom.rs Bug 1643201 - Miscellaneous build fixes. 2020-06-04 00:35:08 +00:00
lib.rs
owned_slice.rs Bug 1621773 - Gracefully handle errors creating shared memory UA style sheets. r=emilio 2020-05-11 00:11:45 +00:00
owned_str.rs
specified_value_info.rs
values.rs Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris 2021-01-17 14:44:41 +00:00
viewport.rs