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

Re: [css3-text] text-decoration-order

From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
Date: Thu, 20 Sep 2012 13:04:20 +0800
Message-ID: <505AA3D4.7000609@oupeng.com>
To: fantasai <fantasai.lists@inkedblade.net>
CC: WWW Style <www-style@w3.org>, 张立理 <otakustay@gmail.com>
(12/09/20 0:23), fantasai wrote:
> On 09/19/2012 01:14 AM, Sebastian Zartner wrote:
>> The CSS Text Decoration draft
>> <http://dev.w3.org/csswg/css3-text-decor/>[1] currently doesn't
>> specify if the decoration should
>> be shown in front of the text or behind it.
>> Therefore I suggest adding a new property called text-decoration-order:
>>
>> text-decoration-order: in-front | behind;
> 
> The painting order of text decorations is specified in CSS2.1 Appendix E:
> underlines and overlines are under the text, line-through is over it.

But it's not clear whether that's always a good idea. For example, for
use cases like drawing waved and dotted underline for misspelled words,
it seems to make more sense to draw underlines above text. See also some
pictures[1] of text-processing softwares about this (in summary,
TextEdit and Word 2010 draws underlines, while Open Office doesn't).

Suppose that we can't change CSS 2.1, GrayZhang (Cced) and I suggest we
make UA draw underlines above text when 'text-decoration-style' isn't
'solid', but I am also curious how strong the use cases of something
like 'text-decoration-order' is.

(It's worth figuring out at which position Word 2010 and TextEdit draw
underlines too.)

> I should probably add a reference to that, though. :)

That's probably a good idea.

[1] http://lists.w3.org/Archives/Public/www-archive/2012Sep/0023


Cheers,
Kenny
-- 
Web Specialist, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/
Received on Thursday, 20 September 2012 05:05:33 GMT

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