W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2020

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

From: Simon Fraser via GitHub <sysbot+gh@w3.org>
Date: Thu, 02 Jan 2020 16:17:07 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-544644492-1577981826-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:58 UTC