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

Re: [whatwg] Alignment of empty buttons

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 12 Jul 2013 20:08:44 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Message-ID: <alpine.DEB.2.00.1307122007550.15729@ps20323.dreamhostps.com>
Cc: whatwg@lists.whatwg.org
On Fri, 3 May 2013, Boris Zbarsky wrote:
> On 5/3/13 7:07 PM, Christian Biesinger wrote:
> > fantasai pointed out that CSS does specify this:
> > "If the box does not have a baseline, align the bottom margin edge
> > with the parent's baseline."
> > (http://www.w3.org/TR/CSS2/visudet.html#propdef-vertical-align)
> 
> Yes, but that _if_ the box does not have a baseline.  CSS does not 
> specify what replaced elements do or do not have baselines (and it's not 
> completely clear even whether <button> is a replaced elements)...

The HTML spec is pretty explicit about it not being:

# When the button binding applies to a button element, the element is 
# expected to render as an 'inline-block' box rendered as a button whose 
# contents are the contents of the element.
 -- http://www.whatwg.org/specs/web-apps/current-work/#the-button-element-0

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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:03 UTC