From 3c15e75d326cbe3a0c28ae0a6c0070f25d6a47f7 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Mon, 1 Oct 2018 16:40:58 +0100 Subject: [PATCH] Issue #2975388 by NickWilde, idebr: Replace Firefox @-moz-document url-prefix() css selector, since its support is being removed --- core/.stylelintrc.json | 5 ++++- core/misc/normalize-fixes.css | 2 +- core/themes/bartik/css/components/form.css | 2 +- core/themes/seven/css/components/form.css | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/core/.stylelintrc.json b/core/.stylelintrc.json index d9d0ede9f5..87d1529534 100644 --- a/core/.stylelintrc.json +++ b/core/.stylelintrc.json @@ -11,7 +11,10 @@ "no-duplicate-selectors": null, "no-unknown-animations": true, "media-feature-name-no-unknown": [true, { - "ignoreMediaFeatureNames": ["prefers-reduced-motion"] + "ignoreMediaFeatureNames": [ + "prefers-reduced-motion", + "min--moz-device-pixel-ratio" + ] }], "number-leading-zero": "always", "plugin/no-browser-hacks": [true, { diff --git a/core/misc/normalize-fixes.css b/core/misc/normalize-fixes.css index 9df0fa0aed..b400831192 100644 --- a/core/misc/normalize-fixes.css +++ b/core/misc/normalize-fixes.css @@ -6,7 +6,7 @@ /** * Fix problem with details/summary lines missing the drop arrows. */ -@-moz-document url-prefix() { +@media (min--moz-device-pixel-ratio: 0) { summary { display: list-item; } diff --git a/core/themes/bartik/css/components/form.css b/core/themes/bartik/css/components/form.css index 03dc6e9b17..e815233fbf 100644 --- a/core/themes/bartik/css/components/form.css +++ b/core/themes/bartik/css/components/form.css @@ -23,7 +23,7 @@ fieldset { * @todo remove once this Mozilla bug is fixed. * See https://bugzilla.mozilla.org/show_bug.cgi?id=504622 */ -@-moz-document url-prefix() { +@media (min--moz-device-pixel-ratio: 0) { fieldset { display: table-cell; } diff --git a/core/themes/seven/css/components/form.css b/core/themes/seven/css/components/form.css index 44016abefc..68dedf1745 100644 --- a/core/themes/seven/css/components/form.css +++ b/core/themes/seven/css/components/form.css @@ -19,7 +19,7 @@ fieldset:not(.fieldgroup) { * @todo remove once this Mozilla bug is fixed. * See https://bugzilla.mozilla.org/show_bug.cgi?id=504622 */ -@-moz-document url-prefix() { +@media (min--moz-device-pixel-ratio: 0) { fieldset:not(.fieldgroup) { display: table-cell; } @@ -41,7 +41,7 @@ fieldset:not(.fieldgroup) > legend { * @todo remove once this Mozilla bug is fixed. * See https://bugzilla.mozilla.org/show_bug.cgi?id=504622 */ -@-moz-document url-prefix() { +@media (min--moz-device-pixel-ratio: 0) { .fieldgroup { display: table-cell; } -- GitLab