[whatwg] Alignment of empty buttons

Tab Atkins Jr. jackalmage at gmail.com
Thu Sep 5 13:52:19 PDT 2013

On Thu, Sep 5, 2013 at 1:47 PM, Ian Hickson <ian at hixie.ch> wrote:
> On Thu, 5 Sep 2013, Boris Zbarsky wrote:
>> On 9/4/13 8:07 PM, Ian Hickson wrote:
>> > As far as I can tell, browsers keep treating it as an inline-block box
>> > in those cases.
>> OK, that works, I guess.  That does mean that buttons are a replaced
>> element, clearly, though...  Something needs to spell that out.
> In what sense?
> The definition of "replaced element" here:
>    http://www.w3.org/TR/CSS2/conform.html#replaced-element
> ...doesn't seem to apply to <button>. The rendering of <button> is very
> much in CSS' scope, no?

Technically, no, buttons are still replaced elements.  In practice,
buttons are pretty much stock CSS elements across all user agents, and
we should probably standardize that.


More information about the whatwg mailing list