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

Re: [CSS2.1] What counts as "an element which contains no text" for the rules in 16.3.1?

From: Zachary Weinberg <zweinberg@mozilla.com>
Date: Thu, 3 Jul 2008 11:11:22 -0700 (PDT)
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style <www-style@w3.org>
Message-ID: <26341546.93271215108682892.JavaMail.root@cm-mail01.mozilla.org>

----- "fantasai" <fantasai.lists@inkedblade.net> wrote:
> Zachary Weinberg wrote:
> > CSS2.1 section 16.3.1 contains the sentence
> > 
> > # If an element contains no text, user agents must refrain from
> > # rendering text decorations on the element.
> > 
> > Suppose, then, that you have something like
> > 
> >   <del>one <span
> style="display:inline-block"><span>two</span></span></del>
> > 
> > Should the word "two" be crossed out?
> If your example was
>    <del>one <span><span>two</span></span></del>
> then of course the line-through should cross "one" and "two".
> Your specific example runs into this clause, however:
> # [Text decoration] is not, however, further propagated to floating and
> # absolutely positioned descendants, nor to the contents of 'inline-table'
> # and 'inline-block' descendants.

That was deliberate; the question is moot if the inner SPAN is drawing its own text decorations.

My question is whether the DEL box should draw text decorations across a descendant box that stops propagation of text decorations, when that box does not have direct text children but does have descendant boxes that have text children.  I am not comfortable considering such a box "an element which contains no text" without further clarification; it's too fine a hair to split.

Received on Thursday, 3 July 2008 18:12:03 GMT

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