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 all commits
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
24 changes: 24 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 Expand Up @@ -1097,6 +1119,8 @@ Changes since the 18 August 2022 Working Draft</h3>
* Correct typo in 'container-type' syntax, to clarify that ''normal'' cannot
be combined with other values.
(<a href="https://github.com/w3c/csswg-drafts/issues/7669">Issue 7669</a>)
* Make the 'content-visibility' property animatable.
(<a href="https://github.com/w3c/csswg-drafts/issues/8627">Issue 8627</a>)

<h3 id="changes-2021-12">
Changes since the 21 December 2021 First Public Working Draft</h3>
Expand Down