Skip to content

Commit

Permalink
[css-pseudo-4] Fix formatting and error in example.
Browse files Browse the repository at this point in the history
display: block is needed for opacity to work; the default is display:
contents.
  • Loading branch information
dbaron committed Jun 3, 2024
1 parent 5814df6 commit 3a7db3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion css-pseudo-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,9 @@ Expandable contents of details element: the ''::details-content'' pseudo-element
animate the opacity of the additional information
when the <{details}> element opens:

<pre class="lang-css">details::details-content {
<pre class="lang-css">
details::details-content {
display: block;
opacity: 0;
transition: content-visibility 300ms allow-discrete step-end, opacity 300ms;
}
Expand Down

0 comments on commit 3a7db3e

Please sign in to comment.