W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2012

[whatwg] <dialog>'s position property

From: Matt Falkenhagen <falken@chromium.org>
Date: Fri, 20 Jul 2012 19:54:17 +0900
Message-ID: <CAJ_xCimuU2eK5WzrQP1HkEGYJxysNQY4j1a8OLDgf2L_vt7-_Q@mail.gmail.com>
To: whatwg@lists.whatwg.org

I'm trying to implement the positioning of <dialog> in WebKit and am
looking at the UA style sheet for dialog [1]. Is there a reason
position:absolute is used instead of fixed?

According to the spec, a non-anchored dialog is vertically centered in
the viewport by default. It seems this can be implemented using
position:fixed and setting the top property appropriately. The left:0
and right:0 rules also seem to make more sense for spanning the
viewport rather than the containing element.

For anchored dialogs, the UA style sheet's position property doesn't
seem to matter, as the property must compute to 'absoluted-anchored'.

The WebKit bug tracking this is:


[1] http://www.whatwg.org/specs/web-apps/current-work/#flow-content-1
Received on Friday, 20 July 2012 10:55:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:14 UTC