Bug 1819335 Part 2 - Add tests for page name change and break-after/break-before...
[gecko.git] / layout / style / TopLevelVideoDocument.css
blob2c1f903106800e8d2ba052a915b9c5341b2231c9
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /*
7 This CSS stylesheet defines the rules to be applied to VideoDocuments that
8 are top level (e.g. not iframes).
9 */
11 :root {
12 background-color: black;
13 /* Fill the viewport height, so that our '-moz-user-focus' styling will
14 disregard clicks in the whole background area (so the video element
15 doesn't inadvertently lose focus from a stray click on the background). */
16 height: 100%;
17 -moz-user-focus: ignore;
20 video {
21 position: absolute;
22 inset: 0;
23 margin: auto;
24 max-width: 100%;
25 max-height: 100%;
26 user-select: none;
27 -moz-user-focus: normal;
30 video:focus {
31 outline-style: none;