This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9542 - Recommended rendering for table alignment does not match reality
Summary: Recommended rendering for table alignment does not match reality
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords: NE
Depends on:
Blocks:
 
Reported: 2010-04-16 16:13 UTC by Aryeh Gregor
Modified: 2010-10-04 13:56 UTC (History)
6 users (show)

See Also:


Attachments

Description Aryeh Gregor 2010-04-16 16:13:28 UTC
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>

According to the expected rendering (as given in the spec) of this markup, the th should be centered in both cases, because th { text-align: center } overrides the style given on the parent table.  However, no browser actually does this except IE8 in standards mode -- which, as usual, tries to follow standards to the letter even when this reduces interoperability in practice.

I filed bugs against Gecko <https://bugzilla.mozilla.org/show_bug.cgi?id=559382> and WebKit <https://bugs.webkit.org/show_bug.cgi?id=37590> suggesting they follow HTML5 here.  I haven't received a response on the WebKit bug yet, but Boris Zbarsky resolved my Gecko bug INVALID.  I don't think I understand CSS well enough to understand what he's saying, but he thinks this behavior is undesirable for web compat.  If he's right, the spec needs to be changed to reflect behavior as actually implemented.  If he's wrong, you should go talk to him and convince him of that.  :)
Comment 1 Ian 'Hixie' Hickson 2010-04-17 06:45:27 UTC
I'll change the 'text-align: center' for <th> to prose corresponding to the magic described in:
   https://bugzilla.mozilla.org/show_bug.cgi?id=559382#c2
Comment 2 Ian 'Hixie' Hickson 2010-09-10 09:00:07 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 3 Boris Zbarsky 2010-09-10 16:43:24 UTC
There's no "diff given below"...
Comment 4 Anne 2010-09-10 16:58:45 UTC
http://html5.org/tools/web-apps-tracker?from=5463&to=5464 mentions this bug in its changelog so I suppose that should have been listed here.