Summary: Move CSS signatures from body to html
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: General/Unknown
            Blocks: 19719

Created attachment 7647

HTML5 allows class attributes on the root element. The CSS signatures (classes
like "mediawiki ns-* page-* skin-*" etc.) that are currently applied to the
body element could therefore be moved to the root element.

The advantage is that these signatures can then be used to style even the root
element, which is currently impossible (see for the rationale; the post is
about ID attributes, but still applicable).

This already works in every browser that allows styling the root element (IE >=
6 and all others) and even in IE 5.5 (which doesn't allow styling the root
element, but still applies rules with selectors that start at the root
element). Testcase attached.

Note, however, that this will break existing rules with unnecessarily specific
selectors ("body.mediawiki" instead of just ".mediawiki"). It may therefore be
wise to add the classes to both elements for a while.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

Wikibugs-l mailing list

Reply via email to