- From: Lutz Issler <lutz.issler@systemantics.net>
- Date: Wed, 25 Jul 2012 12:33:51 +0200
- To: www-style@w3.org
(I changed the subject to css3-text) On 2012-07-25 11:44, Sebastian Zartner <sebastianzartner@gmx.de> wrote: > "text-decoration-width" is a good idea in my eyes. Thanks for supporting this. I would suggest the line should grow from the center, ie. a 3px line would get an additional 1px at the top and bottom of where the 1px would sit. > For defining the distance between the text and the line(s) there's currently the property "text-underline-position" [1]. Though because this value is restricted to underlining and doesn't allow a free offset, it might make sense to add a "text-decoration-offset" property to replace "text-underline-position". I must say "text-underline-position" is quite attractive from the typographic points of view. What about the following proposal: ----- The vertical position of the decoration line is determined by the base position, shifted by "text-decoration-offset". The base position of the decoration line is determined by "text-decoration-line" [1] and "text-decoration-position" [2]. ----- This way, one would be able to set the underline to not cross decendants (depending on the font used), and then shift it 2px down (independent of the font used). -.Lutz.- [1] http://dev.w3.org/csswg/css3-text/#text-decoration-line0 [2] http://dev.w3.org/csswg/css3-text/#text-underline-position0 -- Lutz Issler Systemantics GmbH, Willich, Germany, Amtsgericht Krefeld, HRB 13492 Director: Dr. Lutz Issler, VAT-ID: DE815126198 +49 2154 953793-1 www.systemantics.net / Twitter: @Systemantics_ / @lutzissler
Received on Wednesday, 25 July 2012 10:34:26 UTC