https://bugzilla.wikimedia.org/show_bug.cgi?id=36231

       Web browser: ---
             Bug #: 36231
           Summary: table headers get left aligned when you enable
                    "Justify paragraphs"
           Product: MediaWiki
           Version: unspecified
          Platform: All
               URL: https://de.wikipedia.org/w/index.php?title=Benutzer_Di
                    skussion:PsY.cHo&oldid=102407876#th_align.3D.22center.
                    22
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: User interface
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


On Firefox the table headers (th) gets left aligned when you enable "Justify
paragraphs" in [[Special:Preferences#mw-prefsection-rendering]] or use
text-align:justify for a container. On Internet Explorer the table headers keep
centered.

Expected result: The table headers should always be centered.

I think this is a bug in Firefox. The table caption (caption) is in Firefox
always centered as expected.

With the following CSS definition in skins/common/commonElements.css the table
headers are centered by default:

th {
    text-align: center;
}


Test case:

<div style="width: 20em; float:left; margin-right:1em; border: 1px dashed
silver;">
This paragraph is '''without''' <code>text-align:justify</code>.

{|
|+ Long caption of the table
|-
! th cell !! th cell with<br />two lines
|-
| td 1 || td 2
|-
| width td cell || th cell with<br />two lines
|}
</div>
<div style="text-align: justify; width: 20em; float:left; margin-right:1em;
border: 1px dashed silver;">
This paragraph is '''with''' <code>text-align:justify</code>.

{|
|+ Long caption of the table
|-
! th cell !! th cell with<br />two lines
|-
| td 1 || td 2
|-
| width td cell || th cell with<br />two lines
|}
</div>
<div style="clear:left"/>

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to