diff --git a/core/.stylelintrc.json b/core/.stylelintrc.json
index d9d0ede9f52fbae052dbdbb5d16919297a402d2b..87d15295345632c5b09285e6e346cb3d5fbc9e71 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 9df0fa0aed4ab774491a2415872c2633f6d7bd45..b400831192a84023f2941408eaef253bb61dcf87 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 03dc6e9b1726f1a2393e6e392be841a66a3dfc3c..e815233fbf08924887d590408911e4c8b09e2d05 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 44016abefc4ce33c61bfe4e7c15dbd48d16c04a5..68dedf1745fa278f8363d0228e9822a991faf7f4 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;
   }