You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #7066 it was resolved that all elements are style containers by default. Though the syntax for container-type doesn't reflect that fact.
There was already some discussion in #7066 around that. This issue is meant to focus on what to do in order to make it clear to authors that specifying a container type for an element doesn't overwrite style containment.
Here are some ideas that came up earlier:
Make the style keyword mandatory
That means, if a user wants to specify another type of containment like size containment, they would have to write container-type: size style;.
Cover that with additive cascade @andruud and @mirisuzanne suggested to keep the keywords as they are and instead push additive cascade. That would mean to introduce some syntax that adds another type of containment to the default style containment. Discussion around that is happening in [css-cascade] Additive CSS #1594.
Introduce new keywords that include style containment
Like for the contain property, there could be new keywords introduce that cover multiple types of containment including style containment.
Anything I've forgot that got mentioned before? Any new ideas?
Sebastian
The text was updated successfully, but these errors were encountered:
I'm not convinced we need to do anything more here. We already resolved that all elements are style containers no matter what value is used on container-type. That means there is no need for a container-type: style value, and no need to handle keeping it vs overriding it. I don't know of any use-cases where it would even be useful to override. As I understood it, we already solved this by not giving authors any syntax for setting or removing style containers.
We do still want additive cascade, but I think it's more useful for something like container-name, where conflicts are more likely, and the values are all custom idents out of our control.
I don't know of any use-cases where it would even be useful to override.
@emilio would probably say "performance reasons". But as @fantasaisaid on the last call, a none value could be introduced later to allow to opt out of style containment to improve the performance.
So, let's close this issue in favor of discussing a none value and/or pushing additive CSS.
In #7066 it was resolved that all elements are style containers by default. Though the syntax for
container-type
doesn't reflect that fact.There was already some discussion in #7066 around that. This issue is meant to focus on what to do in order to make it clear to authors that specifying a container type for an element doesn't overwrite style containment.
Here are some ideas that came up earlier:
style
keyword mandatoryThat means, if a user wants to specify another type of containment like size containment, they would have to write
container-type: size style;
.@andruud and @mirisuzanne suggested to keep the keywords as they are and instead push additive cascade. That would mean to introduce some syntax that adds another type of containment to the default style containment. Discussion around that is happening in [css-cascade] Additive CSS #1594.
Like for the
contain
property, there could be new keywords introduce that cover multiple types of containment including style containment.Anything I've forgot that got mentioned before? Any new ideas?
Sebastian
The text was updated successfully, but these errors were encountered: