Skip to content

Commit 3a7db3e

Browse files
committed
[css-pseudo-4] Fix formatting and error in example.
display: block is needed for opacity to work; the default is display: contents.
1 parent 5814df6 commit 3a7db3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

css-pseudo-4/Overview.bs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,9 @@ Expandable contents of details element: the ''::details-content'' pseudo-element
13261326
animate the opacity of the additional information
13271327
when the <{details}> element opens:
13281328

1329-
<pre class="lang-css">details::details-content {
1329+
<pre class="lang-css">
1330+
details::details-content {
1331+
display: block;
13301332
opacity: 0;
13311333
transition: content-visibility 300ms allow-discrete step-end, opacity 300ms;
13321334
}

0 commit comments

Comments
 (0)