Intent to Ship (Nightly Only) : Dialog Element
​
Hi All,
​
In bug 1645046 <https://bugzilla.mozilla.org/show_bug.cgi?id=1645046>, I intend to turn html5 <dialog> element on by default in Nightly. It has been developed behind the dom.dialog_element.enabled preference.
​
Meta Tracking Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=840640
This is Nightly only because two things needs adjustment in our implementation.
1. The inert element isn't supported (bug 921504 - https://bugzilla.mozilla.org/show_bug.cgi?id=921504).

 - For modal dialog, elements that are not part the dialog should be mark as inert, so these elements gain the inert-ness and can't be focused. Since we don't have inert supported yet, users could use tab to move focus out of the dialog, which is not expected.

 - Next Step: The implementation of inert element is going to be started soon (I think), and we can also discuss to support the inert-ness without the supporting of inert element
2. We currently use a temporary solution for the layout of modal dialog. (bug 1637310 - https://bugzilla.mozilla.org/show_bug.cgi?id=1637310).

  - Currently the spec defines modal dialog as an absolute element, along with some weird calculation requirement to make the element centered. This modal dialog layout felt like a hack to us, so we didn't follow it, and instead, we used a temporary solution (https://bugzilla.mozilla.org/show_bug.cgi?id=1642364) to make the modal dialog as a centered fixed element.

  - Next Step: The CCSWG agreed to switch modal dialog to be a centered fixed element (https://github.com/w3c/csswg-drafts/issues/4645#issuecomment-642130060), which is the same as the temporary solution we applied in bug 1642364. So the temporary solution may become a permanent solution after things have been finalized in spec.
​
*Status in other browsers*
Chrome has it enabled by default since Release 37 https://www.chromestatus.com/feature/5770237022568448

*web-platform-tests*: https://github.com/web-platform-tests/wpt/tree/master/html/semantics/interactive-elements/the-dialog-element, We have them all enabled and passing except for those layout and inert related ones.

*Spec* - https://html.spec.whatwg.org/multipage/#the-dialog-element

This feature was previously discussed in https://groups.google.com/d/msg/mozilla.dev.platform/vTPGW1aJq24/JnEnoH3BEAAJ

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to