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

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
></a>

So a question on
<http://dev.w3.org/csswg/css-text-4/#white-space-collapsing>
Depending on situation, I want to treat spaces in following html
differently.

----- html text ------
before
<a href=p.htm>
<img src=i.jpg>
<img src=j.jpg>
</a>
after
----- 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?


Cheers
Biju

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