jenkins-bot has submitted this change and it was merged.

Change subject: Add mw-body-content class on body
......................................................................


Add mw-body-content class on body

This class is used by skins & our own CSS to scope CSS to the content area.
Most skins set it on a div, we set it on the body.

Change-Id: Id8daa5f634863bbb27b72d4eb1873ce003262664
---
M lib/mediawiki.DOMPostProcessor.js
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Subramanya Sastry: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/lib/mediawiki.DOMPostProcessor.js 
b/lib/mediawiki.DOMPostProcessor.js
index 0a14c71..0437385 100644
--- a/lib/mediawiki.DOMPostProcessor.js
+++ b/lib/mediawiki.DOMPostProcessor.js
@@ -353,6 +353,9 @@
                document.body.setAttribute('dir', 'ltr');
        }
 
+       // Set #mw-content-body directly on the body
+       document.body.classList.add('mw-body-content');
+
        this.emit( 'document', document );
 };
 

-- 
To view, visit https://gerrit.wikimedia.org/r/138616
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id8daa5f634863bbb27b72d4eb1873ce003262664
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
Gerrit-Reviewer: Cscott <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to