diff --git a/core/modules/system/system.theme-rtl.css b/core/modules/system/system.theme-rtl.css
index 354f218f66ebad5abf4728bfa4b56b45c8d39502..97def54c6bbd1d36075fecc1dc00581fc807575f 100644
--- a/core/modules/system/system.theme-rtl.css
+++ b/core/modules/system/system.theme-rtl.css
@@ -41,12 +41,12 @@ th {
 /**
  * Collapsible fieldsets.
  */
-html.js fieldset.collapsible .fieldset-legend {
+html.js fieldset.collapsible > legend .fieldset-legend {
   background-position: 98% 75%;
   padding-left: 0;
   padding-right: 15px;
 }
-html.js fieldset.collapsed .fieldset-legend {
+html.js fieldset.collapsed > legend .fieldset-legend {
   background-image: url(../../misc/menu-collapsed-rtl.png);
   background-position: 98% 50%;
 }
diff --git a/core/modules/system/system.theme.css b/core/modules/system/system.theme.css
index 786d1f532f6b2decdcff3b1ad67e1b5f3be38b86..1993d176d743d2b716514652ccb461a52d83cb02 100644
--- a/core/modules/system/system.theme.css
+++ b/core/modules/system/system.theme.css
@@ -173,11 +173,11 @@ abbr.form-required, abbr.tabledrag-changed, abbr.ajax-changed {
  *
  * @see collapse.js
  */
-html.js fieldset.collapsible .fieldset-legend {
+html.js fieldset.collapsible > legend .fieldset-legend {
   background: url(../../misc/menu-expanded.png) 5px 65% no-repeat; /* LTR */
   padding-left: 15px; /* LTR */
 }
-html.js fieldset.collapsed .fieldset-legend {
+html.js fieldset.collapsed > legend .fieldset-legend {
   background-image: url(../../misc/menu-collapsed.png); /* LTR */
   background-position: 5px 50%; /* LTR */
 }