Bug 1763667 part 2: Use :root instead of html/body, on selectors in TopLevelImageDocument.css and TopLevelVideoDocument.css. r=emilio,jaws

This patch shouldn't change behavior.  It just gets us a bit more consistency
between these two stylesheets, and it makes these rules more explicit about the
fact that they're intending to style the root.

Depends on D143395

Differential Revision: https://phabricator.services.mozilla.com/D143429
This commit is contained in:
Daniel Holbert 2022-04-13 18:40:24 +00:00
parent 6c1743090b
commit 9504e42bc7
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
*/
@media not print {
body {
:root {
/* The colors here were chosen to be readable over the corresponding
backgrounds. This is important in case this ImageDocument is for an
image that happens to be corrupt, in which case we'll display a textual

View File

@ -8,7 +8,7 @@
are top level (e.g. not iframes).
*/
html {
:root {
background-color: black;
/* Fill the viewport height, so that our '-moz-user-focus' styling will
disregard clicks in the whole background area (so the video element