Skip to content

Commit 13dcdb4

Browse files
authored
[css-pseudo-4] Simplified example of ::details-content (w3c#10476)
1. By depending on the animation rules defined in https://drafts.csswg.org/css-contain-3/#content-visibility-animation the step-end and step-start values are not needed. 2. 2. By depending on the change in whatwg/html#10265 (comment) and whatwg/html@fb3033a the `display: block` is no longer needed.
1 parent 526599a commit 13dcdb4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

css-pseudo-4/Overview.bs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1328,14 +1328,12 @@ Expandable contents of details element: the ''::details-content'' pseudo-element
13281328

13291329
<pre class="lang-css">
13301330
details::details-content {
1331-
display: block;
13321331
opacity: 0;
1333-
transition: content-visibility 300ms allow-discrete step-end, opacity 300ms;
1332+
transition: content-visibility 300ms allow-discrete, opacity 300ms;
13341333
}
13351334

13361335
details[open]::details-content {
13371336
opacity: 1;
1338-
transition: content-visibility 300ms allow-discrete step-start, opacity 300ms;
13391337
}</pre>
13401338
</div>
13411339

0 commit comments

Comments
 (0)