W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2013

Re: [whatwg] Registration points for elements

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 10 Jan 2013 07:19:46 +0000 (UTC)
To: Mikko Rantalainen <mikko.rantalainen@peda.net>
Message-ID: <Pine.LNX.4.64.1301100718550.2101@ps20323.dreamhostps.com>
Cc: whatwg@lists.whatwg.org
On Thu, 10 Jan 2013, Mikko Rantalainen wrote:
> Ian Hickson, 2013-01-08 18:23 (Europe/Helsinki):
> > 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; }
> 
> That will work if you only want to use one of the element's corners as 
> the anchored point. However, CSS does not provide a way to position the 
> center of the element and use "width: auto" and "height: auto". Even 
> more advanced would be a feature to define anchored point to be some 
> percentage of the width and height and then absolutely position that. 
> However, that feature is missing, too.

I thought that had been fixed with Flexbox.

In any case, improvements to CSS are best discussed on www-style@w3.org, 
since that's where most of the editors of the CSS specs that browser 
implementors follow tend to read and post.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 10 January 2013 07:20:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:12 GMT