Re: [csswg-drafts] [css-contain-1] do we need layout containment in a single dimension to enable container queries?

I think the “two pass” layout for scrollbars is basically OK for authors. The problem arises if a container query script comes into play.

The [spec for `contain: size`](https://www.w3.org/TR/css-contain-1/#containment-size) says:

> Its primary benefit on its own is that tools which want to lay out the containing element’s contents based on the containing element’s size (such as a JS library implementing the "container query" concept) can do so without fear of "infinite loops", …

The same “no infinite loops” benefit would be required for `contain: size-x`, but this is impossible I think. And without this benefit the feature would be useless.

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

Received on Friday, 6 April 2018 18:56:10 UTC