W3C home > Mailing lists > Public > www-style@w3.org > January 2011

RE: [css3-text] Proposal to add "text-decoration-skip: decoration-boundary"

From: Koji Ishii <kojiishi@gluesoft.co.jp>
Date: Sun, 16 Jan 2011 17:36:12 -0500
To: 'Ambrose LI' <ambrose.li@gmail.com>, 'John Cowan' <cowan@mercury.ccil.org>
CC: 'Ethan Chen' <chief@ethantw.net>, "'KangHao Lu (Kenny)'" <kennyluck@w3.org>, 'WWW Style' <www-style@w3.org>, 'CJK discussion' <public-i18n-cjk@w3.org>
Message-ID: <A592E245B36A8949BDB0A302B375FB4E0AAF009877@MAILR001.mail.lan>
Although I could not get confirmation on this, fantasai and I went ahead and added a paragraph to the description in CSS3 Text ED[1] as below. Hope this suffices your request.


The UA should place the start and end of the line inwards from the content edge of the decorating element so that, e.g. two underlined elements side-by-side do not appear to have a single underline. (This is important in Chinese, where underlining is a form of punctuation.)


[1] http://dev.w3.org/csswg/css3-text/#line-decoration


Regards,
Koji

-----Original Message-----
From: Koji Ishii 
Sent: Saturday, December 04, 2010 4:55 PM
To: Ambrose LI; John Cowan
Cc: Ethan Chen; KangHao Lu (Kenny); WWW Style; CJK discussion
Subject: RE: [css3-text] Proposal to add "text-decoration-skip: decoration-boundary"

It looks like I was misleading what I wanted to say. Sorry about that.

I wanted to say that *in English*, you can use:
  <u>word</u> <u>word</u>
to underline each word with underline split.

In Chinese/Japanese, we can't do that today, and we want to make it possible.

I agree with Ambrose, Ethan, and Kenny that this should be solved without hacking HTML source.

What do you guys think changing default behavior rather than adding a new value to text-decoration-skip property?


-----Original Message-----
From: Ambrose LI [mailto:ambrose.li@gmail.com]
Sent: Saturday, December 04, 2010 3:20 PM
To: John Cowan
Cc: Koji Ishii; Ethan Chen; KangHao Lu (Kenny); WWW Style; CJK discussion
Subject: Re: [css3-text] Proposal to add "text-decoration-skip: decoration-boundary"

2010/12/4 John Cowan <cowan@mercury.ccil.org>:
> Koji Ishii scripsit:
>
>> I agree that this is a styling issue and should be solved in CSS, not 
>> in HTML.
>>
>> This is an interesting issue to me. If I understand this correctly, 
>> scripts that use spaces as word delimiters can distinguish the two:
>>   <u>word word</u>
>>   <u>word</u> <u>word</u>
>
> That's correct, but it is an HTML solution (it depends on the position 
> of the space in the HTML), contrary to what you said.  If a space can 
> be added to the HTML to solve the problem in scripts that use space, 
> than a thin space or hair space can be added to the HTML in scripts that do not.

No, a (thin/hair) space can be added to HTML, but not to "solve" the problem but "work around" the problem.

It is only a workaround because this way of writing Chinese is unnatural. This harks back to the days when browsers do not know how to wrap lines consisting with CJK characters with no intervening spaces. This "solution" would be a step at least 10 years backwards.


--
cheers,
-ambrose
Received on Sunday, 16 January 2011 22:36:53 GMT

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