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

I wonder if this can be solved by making `size-x` work only when there's a specified width that does not depend on the parent (i.e. no `auto`, no `available`, no `fit-content`, no percentage). This certainly limits the situations in which you can use size-x, but if these are cases which would not work anyway, I think that leave us with cases where it does. Not sure it is still sufficiently useful though.

Alternatively, since I believe the problem is exclusively caused by an ancestor having auto scrollbars, maybe that's what we fix: if an overflow:auto element has a descendant with 1d size containment (2d also? not sure), then the scrollbar must be always visible, regardless of whether there is actual overflow or not (with an allowance for overlay scrollbars).

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

Received on Saturday, 7 April 2018 01:43:57 UTC