W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: [css3-text] Feature request: "white-space: ignore"

From: Biju <bijumaillist@gmail.com>
Date: Sat, 30 Mar 2013 10:48:37 -0400
Message-ID: <CAA0NmmSWYKUi1DfjMa4tkzkz3Fw9jwf=O5DZHPwLyY9PXxRT0g@mail.gmail.com>
Cc: www-style list <www-style@w3.org>
On 29 March 2013 13:19, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Tue, Dec 18, 2012 at 2:55 PM, Zack Weinberg <zackw@panix.com> wrote:
> > The whitespace node comes from pretty-printing of the HTML source and
> > was not intended to be significant.  It would be nice if there were a
> This is covered by the 'text-space-collapse' property, experimentally
> specced in Text 4:
> <http://dev.w3.org/csswg/css-text-4/#white-space-collapsing>  In
> particular, the 'discard' value.
> There's an issue in the spec already that points out how several of
> the values don't work well with this being inherited.  We haven't
> given Text 4 much love yet, so there hasn't been much thought into how
> to solve that.
> ~TJ
Because of this, to make focus ring correct I sometimes write
pretty-printed html like

<a href=p.htm>
    <img src=i.jpg

So a question on
Depending on situation, I want to treat spaces in following html

----- html text ------
<a href=p.htm>
<img src=i.jpg>
<img src=j.jpg>
----- html text end ------

Example it can mean any one of the following

----- possible choice ------
before <a href=p.htm><img src=i.jpg> <img src=j.jpg></a> after
before <a href=p.htm><img src=i.jpg><img src=j.jpg></a> after
before<a href=p.htm><img src=i.jpg><img src=j.jpg></a> after
before<a href=p.htm><img src=i.jpg><img src=j.jpg></a>after
----- possible choice end ------

Whether white-space-collapsing will offer all the possible to choose from?

Received on Saturday, 30 March 2013 14:49:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:27 UTC