Skip to content

[css-contain-2] Used value of contain #6246

@andruud

Description

@andruud

The spec says that content-visibility can "turn on" layout/style/etc containment, but it's not clear what effect (if any) this has on the computed/used value of contain.

I think the most logical thing would be to specify that if content-visibility is such-and-such, then the used value of contain becomes this-and-that, and specify that the resolved value is the used value.

I bring this up because the Blink implementation of content-visibility modifies the computed value of contain, which seems heavy-handed. Introducing computed-value time dependencies between properties comes at a price. We should avoid doing so unless it's crucial.

cc @vmpstr

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions