W3C home > Mailing lists > Public > www-style@w3.org > December 2010

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

From: KangHao Lu (Kenny) <kennyluck@w3.org>
Date: Sat, 4 Dec 2010 02:23:45 +0900
Message-Id: <1E2428B5-F590-4AC7-A64D-F92B9E397F7B@w3.org>
To: WWW Style <www-style@w3.org>
Cc: Ethan Chen <chief@ethantw.net>, CJK discussion <public-i18n-cjk@w3.org>
(Derived from a suggestion by Ethan Chen[1])

I would like to propose to add "decoration-boundary" as a value of  

The purpose is for the reader to visually tell




apart by leaving a very tiny space at the beginning and end of a text  

The use cases are proper noun mark[3] and citation marks used in  
Chinese. (Picture [4]). I don't know any other use cases.

The current CSS3 Text draft pretty much leaves the length of a text  
decoration undefined, but all current implementations seem to draw  
text decorations throughout the content box, hence connecting, say,  
consecutive underlines into a single line. Notice that in the picture  
an underline is a little bit shorter than the text.

While this effect can be achieved via 'letter-spacing' and the current  
drafted interpretation[5], I think this is a bit hacky and might not  
be a good practice.

Proposed spec change:


Skip over a tiny space at the beginning and end of a text decoration.  
The purpose is to leave spaces between consecutive text decorations.

[1] (Chinese) http://lists.w3.org/Archives/Public/public-html-ig-zh/2010Sep/0091.html
[2] http://dev.w3.org/csswg/css3-text/#text-decoration-skip0
[3] http://en.wikipedia.org/wiki/Proper_name_mark
[4] http://www.go8.com.tw/files/4168%200004.jpg
[5] https://bugzilla.mozilla.org/show_bug.cgi?id=299943

Received on Friday, 3 December 2010 17:24:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:53 UTC