Re: [csswg-drafts] [css-contain-3] Bikeshed the container property & at-rule names to avoid confusion with other usage of contain/container (#6376)

Even in my reading through the spec I had a hard time differentiating initially. I originally thought that `contain: inline-size;` is equivalent to `container-type: inline-size;`. But if I understand this correctly, `container-type` will _also_ set containment behaviour, including size-containment corresponding to what `container-type` is.

_If_ I understand the spec correctly, then the terminology makes sense. Yet even though I already knew about CSS containment I still had to read up quite a bit to make sense of it. So in a way, `container-type` & `container-name` relate to `contain` like `display: flex;` relates to `align-items` & `justify-content` (reductive statement, just for the mental model).

If that is the case, then not only do I think it's not a problem that the name is similar, I think it might in fact be beneficial - because that can be learned and understood and easier so because they are terminologically connected.

I believe that in all of the communication it'll be important to also teach the concept of containment isolated from container querying, as to understand the reason for why that is how it is.

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


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

Received on Thursday, 18 November 2021 09:34:46 UTC