Re: [whatwg] Registration points for elements

On Tue, 8 Jan 2013, Jonas Dinesen wrote:
>
> Is it possible to set a registration point to svg objects and canvas 
> drawings, like Flash can do it? A regsitration point should make it 
> possible for an element to increase or decrease its height and width in 
> all directions.
> 
> If fx, a registration point is set at the bottom to the left, the 
> element will increase its height upwards and its width to the left. As 
> it is now, elements will increase height downwards by default.
> 
> From my point of view it would be a really nice feature, but does the 
> option exist or are there any plans of implementing it?

You can do this with anything in HTML, using absolute positioning: set 
just one of the coordinates in each direction, and leave the other on 
'auto'. As in:

   div { position: absolute: bottom: 10em; right: 10em; width: auto;
         height: auto; left; auto; top: auto; margin: 0; }

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 8 January 2013 16:23:37 UTC