W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 2006

Re: [CSS] 'display: none' blocks still break surrounding inline content into different blocks

From: Irene Vatton <Irene.Vatton@inrialpes.fr>
Date: Tue, 24 Oct 2006 16:11:55 +0200
To: Stanimir Stamenkov <stanio@myrealbox.com>
Cc: "www-amaya.w3.org" <www-amaya@w3.org>
Message-Id: <200610241611.55516.vatton@inrialpes.fr>

On Thursday 19 October 2006 10:59, Stanimir Stamenkov wrote:
> /Irene Vatton/:
> > On Monday 02 October 2006 13:35, Stanimir Stamenkov wrote:
> >> As a side note I find when the <hr> element has |display: none|
> >> applied the inline content around it is not "concatenated", but
> >> split into different blocks (see the last two "No header" blocks:
> >> "No" and "header" appear on different lines).
> >
> > I did that too, but there is another problem:
> > Amaya doesn't replace the undisplayed element by a space.
> > By example
> >
> > <div class=3D"test">
> >  foo<p class=3D"hr"></p>bar
> > </div>
> > is now displayed as "foobar"
>
> Seems I didn't get the point the first time. What you point is the
> correct display, but in:
>
> <div class="test">
>   foo
>   <p class="hr"></p>
>   bar
> </div>
>
> There's a whitespace after "foo" and there's whitespace prior "bar"
> - this should be collapsed to a single space and the result should
> be "foo bar".

This requires a deep change as extra spaces are removed at parsing.

     Irène.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France
Received on Tuesday, 24 October 2006 14:13:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:37 UTC