Last modified: 2011-03-13 18:06:08 UTC
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).
Why would this need special styling or attention of any kind?
See http://bugzilla.wikimedia.org/show_bug.cgi?id=10592 for an application of this feature.
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.