- From: Ian Hickson <ian@hixie.ch>
- Date: Sat, 2 Nov 2013 21:31:04 +0000 (UTC)
- To: Brian Blakely <anewpage.media@gmail.com>
- Cc: Matt Falkenhagen <falken@chromium.org>, "whatwg@lists.whatwg.org" <whatwg@lists.whatwg.org>
On Sat, 2 Nov 2013, Brian Blakely 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. > > That isn't true anymore. There are a few very reliable techniques, such > as flexbox or a combination of display: inline-block and vertical-align: > middle. Those techniques don't result in quite the same result (e.g. they don't remain static when the height changes later), and, unless I'm mistaken, require some extra nodes lying around that we don't have with <dialog>. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 2 November 2013 21:31:27 UTC