File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -141,18 +141,13 @@ animate its `height` when it opens and closes:
141
141
``` css
142
142
details ::details-content {
143
143
--open-close-duration : 500ms ;
144
- display : block ; /* override default 'display: contents' */
145
144
height : 0 ;
146
145
overflow : hidden ;
147
146
transition : height var (--open-close-duration ),
148
- content-visibility var (--open-close-duration ) allow-discrete step-end ;
147
+ content-visibility var (--open-close-duration ) allow-discrete;
149
148
}
150
149
details [open ]::details-content {
151
150
height : calc-size(max-content );
152
- /* repeat the 'transition' but with 'step-start' (for opening) rather than
153
- 'step-end' (for closing) */
154
- transition : height var (--open-close-duration ),
155
- content-visibility var (--open-close-duration ) allow-discrete step-start ;
156
151
}
157
152
```
158
153
You can’t perform that action at this time.
0 commit comments