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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 15 07:32:15 PDT 2010


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





--- Comment #1 from Aryeh Gregor <Simetrical+webkit at gmail.com>  2010-04-15 07:32:15 PST ---
Clarification: HTML5 specifies further behavior to capture the legacy semantics
of align=left and such, namely:

"""
The div, caption, thead, tbody, tfoot, tr, td, and th elements, when they have
an align attribute whose value is an ASCII case-insensitive match for the
string "left", are expected to left-align text within themselves, as if they
had their 'text-align' property set to 'left' in a presentational hint, and to
align descendants to the left.

. . .

When a user agent is to align descendants of a node, the user agent is expected
to align only those descendants that have both their 'margin-left' and
'margin-right' properties computing to a value other than 'auto', that are
over-constrained and that have one of those two margins with a used value
forced to a greater value, and that do not themselves have an applicable align
attribute. When multiple elements are to align a particular descendant, the
most deeply nested such element is expected to override the others.
"""
<http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#alignment>

So fixing this would not mean causing misrendering of "<table
align=left><tr><th>Foo...".  It would make actual CSS properties behave the way
you expect CSS properties to behave, though, which would be nice.  (See
discussion on the Mozilla bug.)

-- 
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