W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: [CSS21] should text-decoration propagate to table-cells from table or above?

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 03 Jul 2008 09:06:15 -0700
Message-ID: <486CF8F7.8030306@inkedblade.net>
To: Zachary Weinberg <zweinberg@mozilla.com>
CC: www-style <www-style@w3.org>

Zachary Weinberg wrote:
> Consider the fragment
> 
> <div style="text-decoration:line-through">
> <table style="text-decoration:underline">
> <tr style="text-decoration:overline">
> <td>cell contents</td></tr></table></div>
> 
> (Assume strict HTML4 with no other explicit CSS rules in effect.)
> What visual rendering should this have; in particular, what
> decorations should be applied to the text "cell contents"? 
> A TABLE is a block-level element, but TD and TR are not - but
> they're not inline-level elements either.  Thus a literal reading
> of the propagation rules in CSS2.1 section 16.3.1 suggests that
> no lines are drawn at all.

Added as CSS2.1 Issue 56:
   http://csswg.inkedblade.net/spec/css2.1#issue-56

If you have a test case for this, can you please post the URL?

~fantasai
Received on Thursday, 3 July 2008 16:06:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT