Re: [csswg-drafts] [css-contain-3] Revisit decision to make `style` the default `container-type` (#7066)

> @SebastianZ Container type is essential for size containers, even setting aside style for now, because it applies the necessary containment (layout, size/inline-size, style), which can be pretty invasive. What containment is needed depends on the specifics of the type, which we can't infer from a name alone.

So it probably _was_ too late yesterday.😆 The idea would only work if we made size containers the default.

Just to summarize how container queries should work as proposed for my (and hopefully other people's) understanding:

Size containers queries: closest ancestor query container matching the queried container features and optional name
Style containers queries:
* non-inherited properties: closest ancestor query container matching the queried container features and optional name
* inherited properties: parent element (<= That's the main issue.)

Sebastian

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


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

Received on Wednesday, 15 June 2022 11:10:47 UTC