Re: Inline elements should be affected by 2D Transforms

On Jun 3, 2011, at 10:35 AM, Boris Zbarsky wrote:

> On 6/3/11 12:37 PM, Brad Kemper wrote:
>> Originally, I was talking about a bounding box around the whole inline element, not separate ones around each piece. But in thinking about it more, I think it should be more like what you are saying, where it is basically each continuous section of the line box that transforms. That is, the lengths of linebox that each contain as much of the inline element as is on that line, as it is visually laid out, even if some of it is bidi.
> 
> I'm not sure I follow.  Say the logical markup is:
> 
>  This is <span>some HEBREW</span> TEXT
> 
> where "HEBREW TEXT" are RTL chars.  The visual layout will be:
> 
>  This is some TXET WERBEH
> 
> If the <span> is transformed (say a rotate by 90 degrees), what do you expect to happen?
> 
> -Boris

Ah. I would expect "TXET" to stay put, and "some" and "WERBEH" to rotate as a unit, with the "s" at the top and the "H" at the bottom.

If the span had, say, a green background, you'd see that "some" and "WERBEH" were two separate boxes, right? Yet, being a single element, they rotate as a unit, just as changing the color once affects both of the two boxes.

There's probably some more complications if there is a line break in there somewhere, too, right? Throw another one at me and I'll tell you what my intuition says.

Received on Friday, 3 June 2011 17:50:24 UTC