[Bug 15100] Right-aligning a numeric table column is much more work than it should be

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15100

--- Comment #6 from Brian Lalonde <brian@webcoder.info> 2011-12-08 16:12:28 UTC ---
(In reply to comment #4)
> I have no idea where you got your information that "most" browsers honor
> text-align on columns - *no* current browser does, to the best of my knowledge.
>  I believe the last browser that did was IE6, because its table model wasn't
> based on CSS.

I stand corrected (I thought WebKit did this as well), but we're both a bit
wrong on this point. Current Opera, and IE (at least through version 8) both
support the align attribute on the col element (IE also honors the
text-alignment of the col element for the cells in that column).

> The problem that you cite is being solved in Selectors 4 with the :col() and
> :nth-col() pseudoclasses: http://dev.w3.org/csswg/selectors4/#table-pseudos

I hadn't seen that yet. That, if supported, should be a big help in a few
years.

> Thus, there is nothing for HTML to do.

The CSS selector approach works well enough when new style rules can be
injected into content. For bug comments or forums or other environments that
may not allow new styles, a markup solution that provided a semantic clue of a
column's broad data type would still be more practical.

(In reply to comment #5)
That seems a bit like an abuse of MathML that may not be terribly reliable,
though I could be wrong.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 8 December 2011 16:12:35 UTC