8000 [css-contain-2] Allow scroll position to be restored when element becomes un-skipped with content-visibility · Issue #5869 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-contain-2] Allow scroll position to be restored when element becomes un-skipped with content-visibility #5869

@vmpstr

Description

@vmpstr

This depends on #5868. If we agree that skipped contents should not contribute to the overflow (i.e. that the scroll thumb does not indicate size of content), then it would still be nice if we allow for that scroll position to be restored when the element is un-hidden.

The current spec compliant behavior (if #5868 is resolved not to include contents in overflow) would cause the scroll offset to be essentially reset when the element is hidden via content-visibility and then shown again. This is not as ergonomic for developers as it could be.

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

      0