Re: Rotated Content

Ian Hickson wrote:
>
>   Angles are measured anti-clockwise from the positive x direction,
>   and rotations are based on the center of the box. So a 180 degree
>   rotation would have the same effect as mirroring and flipping the
>   box (position and size would be left unchanged).


Might it not be simpler, implementation-wise, to assume rotation point
to be the upper-left corner of the box, and to limit rotation to
positioned elements outside the normal flow? Section 9.3.2 of the CSS2
spec states that "An element is said to be positioned if its
'position' property has a value other than 'static'. Positioned
elements generate positioned boxes, laid out according to four
properties..." Perhaps the simplest means for rotation would be to add
a fifth property "angle" or "rotation", with the rotation point being
the same point used for positioning.

David Perrell

Received on Saturday, 3 July 1999 23:20:08 UTC