短评 · ·

X 归档 2024-12-26

2 条动态 · 图 1 · 视频 0
Did you know about transition-behavior: allow-discrete? Using it and a cool grid template trick to allow height transition from 0 to auto we can make a Pure #CSS accessible Accordion in Chrome:
https://codepen.io/waterplea/pen/vEBZoMg
For other browsers don't use 'details' tag😉
你知道 transition-behavior: allow-discrete 吗?利用它和一个巧妙的 grid template 技巧(让 height 可以从 0 过渡到 auto),我们就能在 Chrome 里做一个纯 #CSS 的无障碍手风琴:
https://codepen.io/waterplea/pen/vEBZoMg
其他浏览器的话,别用 'details' 标签😉
In Rsbuild v1.1.13, the error overlay can display type errors with highlighted code frames.
在 Rsbuild v1.1.13 中,错误浮层可以显示类型错误,并带有高亮的代码帧。
@rspack_dev 的配图 1/1