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

Re: [whatwg] Comments on <dialog>

From: Matt Falkenhagen <falken@chromium.org>
Date: Tue, 23 Apr 2013 16:05:16 +0900
Message-ID: <CAJ_xCikUK-uJUgcbDUMn-fbdXX4d9VOSVmN8kR_Up95M_gbD1w@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: whatwg@lists.whatwg.org
Thanks for your response. I just have one comment.

On Tue, Apr 23, 2013 at 4:38 AM, Ian Hickson <ian@hixie.ch> wrote:
> On Mon, 22 Apr 2013, Matt Falkenhagen wrote:
>> 4. Why isn't the dialog horizontally centered in the viewport? The spec
>> just mentions vertical centering and 'top'.
>
> The horizontal centering is done via the default CSS. The vertical
> centering can't be done with CSS, hence all the prose about it.

The default CSS gives the dialog a 'left' and 'right' of zero. I think
this means that to achieve horizontal centering without actually
filling the viewport horizontally, you must set 'width' to something
other than 'auto'. Would it be useful for the width to be
shrink-to-fit if it is 'auto' and then the dialog be centered
horizontally? Or is that not a common use case?
Received on Tuesday, 23 April 2013 07:06:04 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:57 UTC