[Webkit-unassigned] [Bug 90670] Vertically center non-anchored <dialog> elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 6 09:06:31 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=90670


Ojan Vafai <ojan at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ojan at chromium.org




--- Comment #1 from Ojan Vafai <ojan at chromium.org>  2012-07-06 09:06:31 PST ---
(In reply to comment #0)
> Non-anchored <dialog> elements should be vertically centered in the viewport by default.
> 
> It seems there are two general approaches to implement this:
> 
> 1) Change layout to have special handling for positioning dialog elements.
> 2) Change the dialog's CSS directly to position it. E.g., set the 'position' property to 'fixed' and set 'top' accordingly. I'm not sure if doing so is OK according to the HTML or CSS spec, however; for example, perhaps elements are required to have a certain 'position' property by default. The recommended style sheet for dialog uses position 'absolute':<http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#flow-content-1>

Ideally we'd use the CSS from the spec in html.css. Do you know why it uses position:absolute instead of fixed? It's probably worth tracking down the history of discussion there to see if maybe it's just an oversight.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list