Last modified: 2011-03-13 18:06:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12590, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10590 - Add a class for the first wiki headline on the page
Add a class for the first wiki headline on the page
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-15 07:20 UTC by italvet
Modified: 2011-03-13 18:06 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description italvet 2007-07-15 07:20:43 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).
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-15 07:42:56 UTC
Why would this need special styling or attention of any kind?
Comment 2 italvet 2007-07-15 07:52:52 UTC
See http://bugzilla.wikimedia.org/show_bug.cgi?id=10592 for an application of this feature.
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-15 07:56:19 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links