Re: [csswg-drafts] [css-contain-2] apply containment on `content-visibility: visible` ; use `normal` as initial value (#5695)

The resolution was to come up with a name for this mode and bring it back in a week or two, but a year or two is also good! :)

I believe there are two suggestions, so we should pick out of the following:

1. `content-visibility: normal | visible | hidden | auto`.
    * `normal`: the default state which has no effect
    * `visible`: the state which applies `contain: layout style paint` but not `size`
    * `hidden`: the state which applies `contain: layout style paint size` and doesn't paint the contents of the element
    * `auto`: toggles between `hidden` and `visible` based on relevance to the user

2. `content-visibility: visible | contained | hidden | auto`
    * `visible`: the default state which has no effect
    * `contained`: the state which applies `contain: layout style paint` but not `size`
    * `hidden`: the state which applies `contain: layout style paint size` and doesn't paint the contents of the element
    * `auto`: toggles between `hidden` and `contained` based on relevance to the user

I slightly prefer 2, but `contained` may be confusing in that it doesn't apply `size` containment, so it's kind of partially contained. A possible problem with 1 is that it changes the effect of `visible`, so we have to be a bit careful and check if that value is actually being used in developer stylesheets

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 19 September 2022 15:10:19 UTC