style: Make the document blocked by the topmost element in the top layer.

Spec: https://html.spec.whatwg.org/multipage/#blocked-by-a-modal-dialog

Depends on D86392

Differential Revision: https://phabricator.services.mozilla.com/D86227
This commit is contained in:
Sean Feng 2020-08-17 15:41:19 +00:00 committed by Emilio Cobos Álvarez
parent 5d5d4f4429
commit cf496e4727
4 changed files with 7 additions and 0 deletions

View file

@ -163,6 +163,9 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
/// pointer-events: none;
/// cursor: default;
///
/// NOTE: dialog:-moz-topmost-modal-dialog is used to override above
/// rules to remove the inertness for the topmost modal dialog.
///
/// NOTE: If this or the pointer-events tweak is removed, then
/// minimal-xul.css and the scrollbar style caching need to be tweaked.
fn adjust_for_inert(&mut self) {