[Webkit-unassigned] [Bug 37590] New: Centering of th should use CSS text-align

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 14 11:25:08 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=37590

           Summary: Centering of th should use CSS text-align
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: Simetrical+webkit at gmail.com


data URL test case:

data:text/html,<!doctype html>
<table><tr><th>Table 1<tr><td>Longish string to observe centering</table>
<table style=text-align:left><tr><th>Table 2<tr><td>Longish string to observe
centering</table>

Expected results: th should be centered in both cases, because of a text-align:
center rule in CSS that overrides the inheritance.  th { text-align: center }
is recommended in both HTML5 and CSS2.1:
<http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#alignment>
<http://www.w3.org/TR/CSS2/sample.html>

Actual results: The second th is not centered.  The text-align:left from the
ancestor table somehow overrides the alignment of the th.  Web Inspector shows
no text-align rule for th, so th centering is apparently not handled by CSS.

Firefox <https://bugzilla.mozilla.org/show_bug.cgi?id=559382> and Opera both
seem to have the same bug.  IE8 reportedly does not have the bug:
<http://haslayout.net/css/Non-Inherited-TH-Text-Align-Bug>.  If there's a
compelling reason to not use CSS for centering here, a spec bug should be filed
against HTML5 so this can be documented for other browsers.

Observed in Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML,
like Gecko) Chrome/5.0.375.3 Safari/533.4.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list