From 2112e92e76cd4aa77d627c6dae8fdc6728e473bd Mon Sep 17 00:00:00 2001 From: Robert Flack Date: Wed, 19 Apr 2023 14:44:40 +0000 Subject: [PATCH 1/2] [css-contain-3] Make content-visibility animatable. Allow animating content-visibility as animation type discrete with special interpolation to avoid hidden values similar to visibility. Fixes #8627 --- css-contain-3/Overview.bs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/css-contain-3/Overview.bs b/css-contain-3/Overview.bs index 90c1d8e4b59..6ddf60e6d1b 100644 --- a/css-contain-3/Overview.bs +++ b/css-contain-3/Overview.bs @@ -1060,8 +1060,30 @@ The CSSContainerRule interface Suppressing An Element’s Contents Entirely: the 'content-visibility' property {#content-visibility} ================= +
+	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]]
+	
+ Issue: [[css-contain-2#content-visibility]] +

+Animating and Interpolating 'content-visibility'

+ + 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, + p values between 0 and 1 + map to the non-''content-visibility/hidden'' value. + Privacy Considerations {#privacy} ================================= From 11107ac126784833599304c5f7bbe757c9ad2dd1 Mon Sep 17 00:00:00 2001 From: Robert Flack Date: Thu, 20 Apr 2023 17:21:47 +0000 Subject: [PATCH 2/2] Add entry to changelog. --- css-contain-3/Overview.bs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/css-contain-3/Overview.bs b/css-contain-3/Overview.bs index 6ddf60e6d1b..07b46fccb2a 100644 --- a/css-contain-3/Overview.bs +++ b/css-contain-3/Overview.bs @@ -1119,6 +1119,8 @@ Changes since the 18 August 2022 Working Draft * Correct typo in 'container-type' syntax, to clarify that ''normal'' cannot be combined with other values. (Issue 7669) + * Make the 'content-visibility' property animatable. + (Issue 8627)

Changes since the 21 December 2021 First Public Working Draft