W3C home > Mailing lists > Public > www-style@w3.org > November 2012

Re: Any plans to add a method for suppressing white space between inline-block elements?

From: François REMY <francois.remy.dev@outlook.com>
Date: Sat, 24 Nov 2012 15:09:29 +0100
Message-ID: <SNT124-DS54629CF36927D1D5FEEEAA5590@phx.gbl>
To: "CSS WG" <www-style@w3.org>
|  How is this compared to css4-text's 'white-space-collapse'[1]?
Seems kinda similar. The thing is: we need to check out the use cases and 
solve them (so what I miss from this spec is the use cases it's trying to 
solve).

To me (white-space: pre trim-one-line)

    <pre>
class Point {
    constructor(this.x,this.y) {}
}
    </pre>

and (white-space: trim)

    <div>
       <div>Some content</div>
       <div>...</div>
       <div>...</div>
    </div>

is a second one.

I don't think there's are equivalents to my proposed "white-space" values in 
the current draft (trim-inner doesn't work because if my PRE code starts 
with an empty line I have no way to get this line to show up and discard 
would throw the space between words of my PRE).

I would also like to get to see a case where you would like 'discard' and 
which is not a 'trim' case.

I'm also wondering about 'consume' use cases. It's not up to an element to 
know if the whitespace that surrounds him is relevant or not, according to 
me, because this content is outside its control. 
Received on Saturday, 24 November 2012 14:09:44 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:03 GMT