[whatwg] Proposal for a modal element
dpranke at chromium.org
Thu Aug 26 13:59:50 PDT 2010
I've actually been working with some other people on the Chromium team
for what we were calling a "topmost" window that could be used for
modal dialogs. After some feedback, it's been suggested that we try to
turn this into a more generic dialog element.
I haven't yet incorporated that feature into the writeup, but I'll
send you a link off-list. I hope to update the doc and post it to the
list for feedback very soon.
On Thu, Aug 26, 2010 at 1:12 PM, E.J. Zufelt <lists at zufelt.ca> wrote:
> Good afternoon,
> I am wondering if public discussion has been had over the concept of
> introducing a "dialog" element into html5.
> Normally a modal dialog is created using scripting and CSS to restrict focus
> and activity within the "modal" segment of the DOM and to style the modal
> section of the DOM to appear as though it is a separate region floating
> above the remainder of the document.
> A modal element type could indicate to UAs that a segment of the DOM is to
> be treated as active, while the remainder of the DOM is to be inactive.
> Focus could be automatically set to the first natively focusable element
> within the modal segment of the DOM, or could be explicitly set through
> scripting. UAs could provide a default style for modals, as they do for
> other elements, but the developer would normally need to adjust the style
> using CSS for proper sizing and positioning.
> Everett Zufelt
> Follow me on Twitter
> View my LinkedIn Profile
More information about the whatwg