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

RE: [css3-text] Allow control of text-decoration width

From: Koji Ishii <kojiishi@gluesoft.co.jp>
Date: Wed, 6 Apr 2011 23:34:43 -0400
To: Aryeh Gregor <Simetrical+w3c@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <A592E245B36A8949BDB0A302B375FB4E0AB3D559B2@MAILR001.mail.lan>
> Yeah, I've pretty much concluded that CSS underlining is a
> basket case from the perspective of WYSIWYG.  There's
> just no way to square it with what users will expect without
> rewriting how it works, which is unlikely to be worth the effort.
> I've just given up on getting tricky cases right for WYSIWYG
> underline/line-through.  Maybe we can think about it at some future date.

It depends on how you define "what users will expect". Try MS Word and you will find it behaves exactly what I said; i.e., the same way CSS behaves. That is one way to define "what users will expect".

What you said is another way. Adobe In Design is closer to your model. In Design does not align underlines for different sizes, it draws separate underlines to each at different position and thickness, and therefore cancelling one underline does not affect other parts.

I don't argue which is "right", but I like Word model better, and I'm glad that CSS behaves that way. Otherwise you can't draw single consistent underline across different size/fonts. I hope you understand this benefit and trade-off if you compare the differences between Word and In Design.


Regards,
Koji

-----Original Message-----
From: simetrical@gmail.com [mailto:simetrical@gmail.com] On Behalf Of Aryeh Gregor
Sent: Thursday, April 07, 2011 6:52 AM
To: Koji Ishii
Cc: www-style@w3.org
Subject: Re: [css3-text] Allow control of text-decoration width

On Sun, Apr 3, 2011 at 2:28 PM, Koji Ishii <kojiishi@gluesoft.co.jp> wrote:
> Your use case is interesting, but I'd also be surprised if the following two actions produced different results.
> * Apply underline to "bar baz quz" and then remove underline from "baz"
> * Apply underline to "bar" of "bar baz quz", and then to "quz"

Yeah, I've pretty much concluded that CSS underlining is a basket case from the perspective of WYSIWYG.  There's just no way to square it with what users will expect without rewriting how it works, which is unlikely to be worth the effort.  I've just given up on getting tricky cases right for WYSIWYG underline/line-through.  Maybe we can think about it at some future date.
Received on Thursday, 7 April 2011 03:36:44 GMT

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