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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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