W3C home > Mailing lists > Public > www-style@w3.org > September 2006

Re: input element - absolute positioning - determing width with left and right

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Thu, 07 Sep 2006 02:26:38 -0500
Message-ID: <44FFC9AE.308@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: www-style@w3.org

Anne van Kesteren wrote:
> So form controls are currently treated a bit like replaced elements, 
> much like images and per the specification they should just get their 
> intrinsic width for the above case. For example
> 
>   <img height="200" width="200" src="..." alt="...">
> 
> absolutely positioned with 'left' and 'right' set to zero will still get 
> a width of 200px.

Yes, but because it's overconstrained, so the value for "right" is ignored (if 
direction is "ltr").  That is, in this case you have specified all three of 
width, left, and right....

-Boris
Received on Thursday, 7 September 2006 07:26:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:46 GMT