Re: [css-houdini-drafts] [css-layout-api] Developer-friendly solution to avoiding FOUC (#856)

I agree this seems necessary in some fashion or another.

I think the promise to way before first rendering is interesting but maybe not the right approach as it prevents splashscreens and would lock up the entire page even for a small component.

Maybe `display: layout(x)` should act like `display: none` for yet-undeclared layout x? With possibly a fallback option as in `display: layout(x || block > none)` to render the current element as a block, and force the display of all its children to none. You could then do things like `display: layout(x || grid)` and use grid properties as a fallback for when x is not defined yet.

-- 
GitHub Notification of comment by FremyCompany
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/856#issuecomment-475603403 using your GitHub account

Received on Friday, 22 March 2019 12:30:52 UTC