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

So to be clear, the problem here is

> DOM snapshots the top/bottom of the viewport as inset property values when the dialog is opened, and rewrites those values if the viewport is resized.

right? It wasn't entirely clear to me how we would implement that specification-wise. Are new values that act like that another possibility we could consider? If this is a useful primitive, I'm not sure why CSS shouldn't offer it natively.

(Using content attributes for styling seems to go against separation of markup and style, but I might be misunderstanding something. Your final solution would work, but would still make HTML own some layout logic it probably shouldn't.)

-- 
GitHub Notification of comment by annevk
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4645#issuecomment-634594696 using your GitHub account

Received on Wednesday, 27 May 2020 11:18:57 UTC