[csswg-drafts] [dialog element] <dialog> positioning should be describable in CSS (#4645)

smfr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [dialog element] <dialog> positioning should be describable in CSS ==
HTML describes the ["centered alignment" of a dialog element](https://html.spec.whatwg.org/multipage/interactive-elements.html#centered-alignment) in somewhat opaque prose.

Blink's implementation of this is a [hack in their rendering code](https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/layout/layout_block_flow.cc?q=ComputeAbsoluteDialogYPosition&ss=chromium&originalUrl=https:%2F%2Fcs.chromium.org%2F)

This needs to be described in terms of CSS (ideally as some rules in the UA stylesheet). Apparently it's not implementable in CSS, which is a problem. First, UAs should not have to add custom layout code for the dialog element, and second authors should be able to achieve the same positioning behavior for their own elements.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4645 using your GitHub account

Received on Thursday, 2 January 2020 16:17:08 UTC