- From: Florian Rivoal <florian@rivoal.net>
- Date: Mon, 1 Dec 2014 23:04:53 +0100
- To: Chris Lilley <chris@w3.org>
- Cc: Koji Ishii <kojiishi@gmail.com>, www-style list <www-style@w3.org>, "L. David Baron" <dbaron@dbaron.org>, Tantek Çelik <tantek@cs.stanford.edu>, "Tab Atkins Jr." <jackalmage@gmail.com>
> On 01 Dec 2014, at 18:04, Chris Lilley <chris@w3.org> wrote: > Monday, December 1, 2014, 5:45:12 PM, Florian wrote: > >> Which makes be think of text along a curvy path. Should the cursor >> change as the path’s tangent goes past 45deg? > > Text on a path is text, which has firstly been laid out, and secondly > put on a path. So horizontal text is horizontal text, even if the path > is a vertical line or a circle. It does not suddenly become vertical > text at some critical angle. (One could also lay out vertical text, > and then put it on a path). > > Its the same as having some text element and rotating it. The text > does not become "vertical text" and "horizontal text", and re-layout, > four times per 360 degree rotation. > > As to the cursor, for horizontal text, if it can be displayed > perpendicular to the path then that is nice (but different issue to > horizontal/vertical text). CSS3-UI defines a horizontal text cursor, a vertical text cursor, and an auto value that should be able to intelligently switch between the two. I am trying to determine what “intelligently” means. I had not considered anything other than horizontal, vertical, and horizontal-in-vertical text, but Koji’s suggestion about transform:rotate() made me think further, and reminded me that text can not only be at an angle, it doesn’t even have to be straight. I don’t think we should go with a MUST level requirement that the cursor be perpendicular to the path (although I don’t think there’d be anything wrong with a MAY, if any UA is willing to rotate cursors in a fine grained manner, more power to them), but we may want to make a requirement of switching between horizontal and vertical when the angle of the text / tangent of the path cross +/- 45 degrees. - Florian
Received on Monday, 1 December 2014 22:05:21 UTC