[whatwg] Comments on <dialog>
ian at hixie.ch
Sat Nov 2 14:31:04 PDT 2013
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:
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. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg