---
title: "X 归档 2024-05-18"
date: "2024-05-18"
tags:
  - x-archive
  - frontend
  - devops
---

<div class="x-arch-meta">2 条动态 · 图 2 · 视频 1</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-1791529505674195043" id="xl-1791529505674195043-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1791529505674195043" id="xl-1791529505674195043-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1435102061616525317/Rt1u-MPx_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/yisibl" target="_blank" rel="nofollow noopener" data-name="一丝" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1435102061616525317/Rt1u-MPx_bigger.jpg">@yisibl</a><span class="x-arch-time">02:01</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1791529505674195043-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1791529505674195043-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/yisibl/status/1791529505674195043" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">CSS magic: now you can animate height from 0 to auto via `calc-size(auto)` <br /><br />Say goodbye to JS Calculate Height!<br /><br />Combined with &lt;details name=&quot;&quot;&gt;, a nearly perfect and exclusive Accordion component can now be implemented. <br />@Una @davidbaron <br /><br /><a href="https://codepen.io/yisi/pen/MWdajwr" target="_blank" rel="noopener">https://codepen.io/yisi/pen/MWdajwr</a></div>
    <div class="x-arch-text x-arch-trans">CSS 魔法：现在可以通过 `calc-size(auto)` 让 height 从 0 动画过渡到 auto 了 <br /><br />跟 JS 计算高度说再见吧！<br /><br />再配合 &lt;details name=&quot;&quot;&gt;，现在就能实现一个近乎完美且专属的手风琴（Accordion）组件。 <br />@Una @davidbaron <br /><br /><a href="https://codepen.io/yisi/pen/MWdajwr" target="_blank" rel="noopener">https://codepen.io/yisi/pen/MWdajwr</a></div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2024-05/1791529505674195043-1.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2024-05/1791529505674195043-1.jpg" alt="@yisibl 的配图 1/1" loading="lazy" decoding="async" width="1772" height="1042" /></a>
    </div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2024-05/1791529505674195043-poster.jpg" src="/cdn-media/x/2024-05/1791529505674195043-video.mp4" width="724" height="720" data-duration="6" aria-label="@yisibl 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1791537628124258813" id="xl-1791537628124258813-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1791537628124258813" id="xl-1791537628124258813-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1562179359884029952/zk3CijLw_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/mattcarrollcode" target="_blank" rel="nofollow noopener" data-name="Matt Carroll" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1562179359884029952/zk3CijLw_bigger.jpg">@mattcarrollcode</a><span class="x-arch-time">02:33</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1791537628124258813-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1791537628124258813-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/mattcarrollcode/status/1791537628124258813" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">.@Baconbrix had one of the coolest demos I’ve ever seen showing how native UI can be rendered on the server <a href="https://www.youtube.com/live/T8TZQ6k4SLE?si=2Ah6Gj2hry7MGBT4&amp;t=20756" target="_blank" rel="noopener">https://www.youtube.com/live/T8TZQ6k4SLE?si=2Ah6Gj2hry7MGBT4&amp;t=20756</a></div>
    <div class="x-arch-text x-arch-trans">.@Baconbrix 的这个演示是我见过最酷的之一，展示了原生 UI 如何能在服务器端渲染 <a href="https://www.youtube.com/live/T8TZQ6k4SLE?si=2Ah6Gj2hry7MGBT4&amp;t=20756" target="_blank" rel="noopener">https://www.youtube.com/live/T8TZQ6k4SLE?si=2Ah6Gj2hry7MGBT4&amp;t=20756</a></div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2024-05/1791537628124258813-1.png" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2024-05/1791537628124258813-1.png" alt="@mattcarrollcode 的配图 1/1" loading="lazy" decoding="async" width="372" height="754" /></a>
    </div>
  </div>
</div>
