Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-contain-3] Make content-visibility animatable. #8737

Merged
merged 2 commits into from
Apr 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions css-contain-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,30 @@ The <code>CSSContainerRule</code> interface</h3>
Suppressing An Element’s Contents Entirely: the 'content-visibility' property {#content-visibility}
=================

<pre class=propdef>
Name: content-visibility
Value: visible | auto | hidden
Initial: visible
Inherited: no
Applies to: elements for which [=size containment=] can apply
Animation type: see [[#content-visibility-animation]]
</pre>

Issue: [[css-contain-2#content-visibility]]

<h3 id='content-visibility-animation'>
Animating and Interpolating 'content-visibility'</h3>

In general,
the 'content-visibility' property’s [=animation type=] is [=discrete=].
However,
similar to interpolation of 'visibility'
(see [[web-animations-1#animating-visibility]]),
during interpolation between ''content-visibility/hidden''
and any other 'content-visibility' value,
<var>p</var> values between 0 and 1
map to the non-''content-visibility/hidden'' value.

Privacy Considerations {#privacy}
=================================

Expand Down