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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 6 02:49:36 PDT 2012


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

           Summary: Vertically center non-anchored <dialog> elements
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: falken at chromium.org
                CC: tkent at chromium.org, morrita at google.com
            Blocks: 84635


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>

-- 
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