[whatwg] Alignment of empty buttons
ian at hixie.ch
Fri Jul 12 13:08:44 PDT 2013
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.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg