Page MenuHomePhabricator

Add a class for the first wiki headline on the page
Closed, DeclinedPublic

Description

Author: alistrius

Description:
actually h2:first-child is

<div id="toctitle">
<h2>Contents</h2>[...]
</div>

a dedicated class for the first true == headline == could be useful for javascript catchers, and essential for css (especialy for IE which have difficulties with pseudo-classes).


Version: unspecified
Severity: enhancement

Details

Reference
bz10590

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:52 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz10590.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

Why would this need special styling or attention of any kind?

ayg wrote:

That is not a legitimate application, because it assumes that the element immediately following the TOC is the first heading. That's not necessarily true. The TOC can be put anywhere on the page with the TOC magic word. The correct way to induce clearing would probably be either clever use of non-floating wrappers with overflow: hidden to make a new block formatting context, or (less desirably) adding an explicit <div class="visualClear"></div> after the TOC. A non-floating wrapper with overflow: hidden would be needed anyway to prevent interference from other left floats.