For archive pages of completed (closed) discussions, a colored background is often made. To do this for the whole page, an opening tag <div style="background-color:gray"> (e.g. by template closed-start {{closed}}) is placed at the top of the page and a closing tag </div> (e.g. by template closed-end {{ecs}}) is placed at the end of the page.
https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=934865013
But often only an opening template/tag <div> is put, because the parser autocloses the tags
https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&diff=prev&oldid=934865972
e.g. lintid=8555846 in oldid=83985028
due to this, many pages fall into the list of linter errors https://www.mediawiki.org/wiki/Help:Extension:Linter/missing-end-tag (tens of thousands pages with "Missing end tag - div" in ruwiki e.g. namespase wikipedia).
But, for example, take such a single div: <div style="background-color: #eaecf0; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: 0;"></div>. It was expected that the background will only be in the area in which the text of the article/discussion is located. But in fact, the background extends far beyond the <div class="mw-parser-output">
- up (to h1 header, affecting the part "From Wikipedia, the free encyclopedia") and down (affecting categories) in the Vector skin https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=934867364&useskin=vector
- in Monobook skin in all directions https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=934867364&useskin=monobook
- When editing, the background covers the area of the wikitext editor and lists and categories below it. https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&action=edit&oldid=934867364 -> Show preview
Is it possible to clarify the boundaries of an mw-parser-output area so that the background remains only inside of<div class="mw-parser-output">?
Is it possible somehow better to make a gray background for the content of individual pages to avoid the constant addition of a closing div for tens of thousands of pages?