W3C home > Mailing lists > Public > www-style@w3.org > September 2015

Re: [css-writing-modes] computed value for text-orientation: sideways or sideways-right

From: Jonathan Kew <jfkthame@gmail.com>
Date: Sat, 19 Sep 2015 14:46:22 +0100
To: Koji Ishii <kojiishi@gmail.com>, Florian Rivoal <florian@rivoal.net>
Cc: fantasai <fantasai.lists@inkedblade.net>, 馬場孝夫 <baba@bpsinc.jp>, Gérard Talbot <www-style@gtalbot.org>, W3C www-style mailing list <www-style@w3.org>
Message-ID: <55FD672E.3060605@gmail.com>
On 19/9/15 13:26, Koji Ishii wrote:
> The original topic is just about serialization, used in
> getComputedStyle() and a few other places. Jonathan might need to
> resolve it now, and I need it too very soon. Can we simply straw poll on
> the next conf call, resolve, and do other discussions after that?

Yes, please -- I'm implementing this in gecko right now, so 
clarification on this would be really useful.

>
> <div id=a style="text-orientation:sideways"></div>
> <div id=b style="text-orientation:sideways-right"></div>
> <script>
> console.log(getComputedStyle(a).style.textOrientation);
> console.log(getComputedStyle(b).style.textOrientation);
> </script>
>
> Option A: it prints "sideways" and "sideways-right"
> Option B: it prints "sideways" and "sideways"
> Option C: it prints "sideways-right" and "sideways-right"
>
> Current situation:
> * Jonathan, Florian, and I prefer B.
> * Takao prefers C.
> * fantasai didn't show her preference IIUC but proposing a rename to
> "sideways-lr".
>
>> I think I would like to investigate the backwards-compat impact
>>of switching to 'text-orientation: sideways-rl' and dropping
>>the other keywords, since that would be a little easier to type,
>>but also clearer and more consistent with the corresponding
>>writing-mode' keywords... what is your opinion on that, if it
>>is feasible?
>
> I disagree. 'writing-mode' is about direction, so "l-to-r" and "r-to-l"
> makes sense. 'text-orientation' is about orientation, so "right" makes
> sense.

And I agree with Koji here: I don't think 'sideways-rl' is good as a 
'text-orientation' value. This property is distinct from 'writing-mode' 
and it's better not to confuse the values of the two.

So my preference is still the simple 'sideways', with the alias 
'sideways-right' supported for backward compatibility (option B above).

JK
Received on Saturday, 19 September 2015 13:46:52 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:53 UTC