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

RE: Question on Text-Combine-Horizontal in the Writing Mode Module

From: Stephen Zilles <szilles@adobe.com>
Date: Wed, 25 Apr 2012 15:27:13 -0700
To: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <CE2F61DA5FA23945A4EA99A212B1579569B177C356@nambx03.corp.adobe.com>
Elika,
Your answers are very reasonable. Perhaps an example, such as mine, would be useful to illustrate element boundaries. 

Steve Z.

-----Original Message-----
From: fantasai [mailto:fantasai.lists@inkedblade.net] 
Sent: Wednesday, April 25, 2012 2:36 PM
To: www-style@w3.org
Subject: Re: Question on Text-Combine-Horizontal in the Writing Mode Module

On 04/24/2012 11:12 AM, Stephen Zilles wrote:
> Elika,
>
> In the description of the "all" value of "text-combine-horizontal" the 
> following sentence occurs, "If the content contains any element 
> boundaries this is treated as 'text-combine-horizontal: none' on the element and any descendants." What does it mean to "contain any element boundaries"?
>
> In particular, what happens with
>
> vertical text<span style="text-combine-horizontal: all"> 
> H<sub>2</sub>O</span>more vertical text
>
> I would expect that the "H2O" (with the 2 being a subscript) would be 
> set horizontally as three characters. Is this what happens? Or, is the <sub> element considered to be an element boundary?

That text contains two element boundaries, so, no, it wouldn't be set horizontally.

We could of course change this, but my initial thoughts were to keep it as simple as possible to implement. Allowing elements inside is not too bad, but it brings up issues wrt vertical alignment and line height, margins and borders, what do you do if it contains an inline block or an image, how does all that interact with the auto-sizing behavior, etc.

Your particular use case, and most others, can be handled by using the appropriate Unicode codepoint. And for anything more complicated, there's display: inline-block; writing-mode: horizontal-tb;.

~fantasai
Received on Wednesday, 25 April 2012 22:27:50 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:52 GMT