From 4f80accf77e4749cd827ca6863373108b1757f3a Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Wed, 2 Oct 2019 18:10:53 +0000 Subject: [PATCH] Bug 1583403 - Remove default namespace from various global.css files. r=dao Makes it easier to share this CSS with HTML namespaced files. Differential Revision: https://phabricator.services.mozilla.com/D46882 --HG-- extra : moz-landing-system : lando --- toolkit/themes/linux/global/global.css | 48 ++++++++++------------ toolkit/themes/osx/global/global.css | 50 ++++++++++------------- toolkit/themes/osx/reftests/baseline.xul | 2 +- toolkit/themes/shared/global.inc.css | 20 ++++----- toolkit/themes/windows/global/global.css | 52 +++++++++++------------- 5 files changed, 77 insertions(+), 95 deletions(-) diff --git a/toolkit/themes/linux/global/global.css b/toolkit/themes/linux/global/global.css index 9a8fa57bf6a3..b38bc87f99bc 100644 --- a/toolkit/themes/linux/global/global.css +++ b/toolkit/themes/linux/global/global.css @@ -10,7 +10,7 @@ @import url("chrome://global/locale/intl.css"); @import url("chrome://global/content/widgets.css"); -@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); +@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @namespace html url("http://www.w3.org/1999/xhtml"); %include ../../shared/global.inc.css @@ -18,13 +18,13 @@ /* ::::: XBL bindings ::::: */ @media (-moz-menubar-drag) { - toolbar[type="menubar"] { + xul|toolbar[type="menubar"] { -moz-window-dragging: drag; } } -/* ::::: Variables ::::: */ :root { + /* ::::: Variables ::::: */ --default-arrowpanel-background: -moz-field; --default-arrowpanel-color: -moz-fieldText; --default-arrowpanel-border-color: ThreeDShadow; @@ -33,13 +33,7 @@ --arrowpanel-border-color: var(--default-arrowpanel-border-color); --arrowpanel-padding: 10px; --panel-disabled-color: GrayText; -} - -/* ::::: root elements ::::: */ - -window, -dialog, -wizard { + /* ::::: Styles ::::: */ -moz-appearance: dialog; background-color: -moz-Dialog; color: -moz-DialogText; @@ -71,7 +65,7 @@ wizard { /* ::::: iframe ::::: */ -iframe { +xul|iframe { border: none; width: 100px; height: 100px; @@ -81,7 +75,7 @@ iframe { @supports -moz-bool-pref("layout.css.emulate-moz-box-with-flex") { /* In emulation,