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

Re: Stretching element without stretching text

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 23 Nov 2010 14:59:09 -0800
Message-ID: <AANLkTikUo7i5=9BYBTuFYn4xOkPQ6W3SLGJ9fuhbwzxM@mail.gmail.com>
To: Jaikishan Jalan <jai.ism@gmail.com>
Cc: Fran├žois REMY <fremycompany_pub@yahoo.fr>, CSS 3 W3C Group <www-style@w3.org>
On Tue, Nov 23, 2010 at 1:52 PM, Jaikishan Jalan <jai.ism@gmail.com> wrote:
> I was hoping to see a property, preserve-text similar to that of
> preserve-3d, that when applied to a textual element will never change the
> font size no matter what transformation is applied to it.

Like I explained, that's fundamentally incompatible with how
Transforms work currently.  Transforms are purely a visual
transformation of the element - it is first laid out like normal, then
rotated/skewed/translated visually.

It's also a much more complex problem than you're letting on.  If you
scale the box up and leave the text the same size, where does the text
go?  Does it stay against the top and left edges of the transformed
content area?  Before and start edges?  Top edge, but center
horizontally?  Or should the contents of the element completely
re-layout to accomodate the new size of the content area?  What about
if you shrink the box?  What if you skew the box - should the text
still be skewed, or should it somehow be reflowed to accomodate a
non-rectangular box?

Received on Tuesday, 23 November 2010 23:00:03 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:41 UTC