---
title: "X 归档 2025-04-19"
date: "2025-04-19"
tags:
  - x-archive
  - frontend
  - rust
---

<div class="x-arch-meta">8 条动态 · 图 0 · 视频 2</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-1913353712552251860" id="xl-1913353712552251860-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1913353712552251860" id="xl-1913353712552251860-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/1610370276289646592/r2Vb3yZj_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-liked" 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="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" /></svg></span><a class="x-arch-author" href="https://x.com/dioxuslabs" target="_blank" rel="nofollow noopener" data-name="Dioxus 🧬" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1610370276289646592/r2Vb3yZj_bigger.jpg">@dioxuslabs</a><span class="x-arch-time">06:07</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1913353712552251860-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1913353712552251860-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/dioxuslabs/status/1913353712552251860" 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">Simultaneous FRONTEND + BACKEND hotpatching 🤯<br /><br />Hotpatching Rust faster NextJS can reload JavaScript!<br /><br />Dioxus 0.7 is going to completely change Rust WebDev.<br /><br />Alpha dropping soon 🔜</div>
    <div class="x-arch-text x-arch-trans">前端 + 后端同时热补丁 🤯<br /><br />给 Rust 打热补丁，比 NextJS 重载 JavaScript 还快！<br /><br />Dioxus 0.7 将彻底改变 Rust Web 开发。<br /><br />Alpha 即将推出 🔜</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2025-04/1913353712552251860-poster.jpg" src="/cdn-media/x/2026-10/1913353712552251860-video.mp4" width="1008" height="720" data-duration="17" aria-label="@dioxuslabs 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1913509415262502925" id="xl-1913509415262502925-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1913509415262502925" id="xl-1913509415262502925-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/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png" 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/gaubeebangeel" target="_blank" rel="nofollow noopener" data-name="gaubeebangeel" data-avatar="https://twimg.tweb.xin/twimg/profile_images/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png">@gaubeebangeel</a><span class="x-arch-time">16:26</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1913509415262502925-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1913509415262502925-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/gaubeebangeel/status/1913509415262502925" 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">Dive deep into CSS View Transitions Level 1! 🏊‍♂️ While powerful for smooth UI changes, it has its quirks &amp; limitations, especially in complex SPAs. Let's explore the &quot;temper&quot; of this API based on real-world usage. #CSS #ViewTransitions #WebDev #Frontend</div>
    <div class="x-arch-text x-arch-trans">深入学习 CSS View Transitions Level 1！🏊‍♂️ 它虽然能强大地实现流畅的 UI 切换，但也有自己的怪癖和局限，在复杂的 SPA 里尤其如此。让我们结合真实使用，来摸清这个 API 的「脾气」。 #CSS #ViewTransitions #WebDev #Frontend</div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1913509417401897114" id="xl-1913509417401897114-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1913509417401897114" id="xl-1913509417401897114-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/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png" 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/gaubeebangeel" target="_blank" rel="nofollow noopener" data-name="gaubeebangeel" data-avatar="https://twimg.tweb.xin/twimg/profile_images/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png">@gaubeebangeel</a><span class="x-arch-time">16:26</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1913509417401897114-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1913509417401897114-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/gaubeebangeel/status/1913509417401897114" 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">Quirk #1: Rendering Suppression! 🚫 Once startViewTransition fires, your main doc becomes invisible &amp; non-interactive until the transition finishes ( .finished ). Good for splash screens, but beware of long animations blocking user input! Keep 'em short &amp; sweet. #ViewTransitions</div>
    <div class="x-arch-text x-arch-trans">怪癖 #1：渲染抑制！🚫 一旦 startViewTransition 触发，你的主文档就会变得不可见且不可交互，直到过渡结束（ .finished ）。适合做启动屏，但要小心过长的动画阻塞用户输入！保持短小精悍。 #ViewTransitions</div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1913509419582886370" id="xl-1913509419582886370-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1913509419582886370" id="xl-1913509419582886370-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/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png" 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/gaubeebangeel" target="_blank" rel="nofollow noopener" data-name="gaubeebangeel" data-avatar="https://twimg.tweb.xin/twimg/profile_images/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png">@gaubeebangeel</a><span class="x-arch-time">16:26</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1913509419582886370-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1913509419582886370-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/gaubeebangeel/status/1913509419582886370" 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">Quirk #2: Snapshot Context Issues! 📸 Elements with view-transition-name are visually &quot;lifted&quot; out. This can break parent overflow: hidden or clip-path during the transition, revealing more than intended. contain: layout might help mitigate. 👀#ViewTransitions</div>
    <div class="x-arch-text x-arch-trans">怪癖 #2：快照上下文问题！📸 带 view-transition-name 的元素会在视觉上被「拎」出去。这在过渡期间可能破坏父级的 overflow: hidden 或 clip-path，露出超出预期的内容。contain: layout 或许能缓解。 👀#ViewTransitions</div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1913509424037064811" id="xl-1913509424037064811-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1913509424037064811" id="xl-1913509424037064811-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/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png" 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/gaubeebangeel" target="_blank" rel="nofollow noopener" data-name="gaubeebangeel" data-avatar="https://twimg.tweb.xin/twimg/profile_images/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png">@gaubeebangeel</a><span class="x-arch-time">16:26</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1913509424037064811-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1913509424037064811-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/gaubeebangeel/status/1913509424037064811" 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">Quirk #4: Unsupported Contexts! ❌ View Transitions currently struggle with elements inside Shadow DOM or those styled with display: contents . They won't participate in the transition. Plan workarounds if using these features heavily! 🧩#ViewTransitions</div>
    <div class="x-arch-text x-arch-trans">怪癖 #4：不支持的上下文！❌ View Transitions 目前搞不定 Shadow DOM 内部的元素，以及用 display: contents 设置样式的元素——它们不会参与过渡。如果你重度使用这些特性，提前想好变通方案！ 🧩#ViewTransitions</div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1913509421675876764" id="xl-1913509421675876764-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1913509421675876764" id="xl-1913509421675876764-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/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png" 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/gaubeebangeel" target="_blank" rel="nofollow noopener" data-name="gaubeebangeel" data-avatar="https://twimg.tweb.xin/twimg/profile_images/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png">@gaubeebangeel</a><span class="x-arch-time">16:26</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1913509421675876764-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1913509421675876764-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/gaubeebangeel/status/1913509421675876764" 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">Quirk #3: CSS Custom Property Scope! 🤔 --vars set globally (e.g., on :root ) might not directly cascade into ::view-transition-* pseudo-elements. You might need dynamic &lt;style&gt; tags or adoptedStyleSheets for runtime CSS changes within transitions. 🎨#ViewTransitions</div>
    <div class="x-arch-text x-arch-trans">怪癖 #3：CSS 自定义属性作用域！🤔 全局设置的 --vars（比如在 :root 上）可能无法直接级联到 ::view-transition-* 伪元素。想要在过渡中动态修改 CSS，可能需要动态 &lt;style&gt; 标签或 adoptedStyleSheets。 🎨#ViewTransitions</div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1913509426369347779" id="xl-1913509426369347779-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1913509426369347779" id="xl-1913509426369347779-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/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png" 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/gaubeebangeel" target="_blank" rel="nofollow noopener" data-name="gaubeebangeel" data-avatar="https://twimg.tweb.xin/twimg/profile_images/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png">@gaubeebangeel</a><span class="x-arch-time">16:26</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1913509426369347779-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1913509426369347779-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/gaubeebangeel/status/1913509426369347779" 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">Quirk #5: Viewport Changes = Skipped Transitions! ⚠️ Resizing the browser window, switching tabs (occlusion), or minimizing can cause the transition to abort ( skipTransition() ). Makes debugging in DevTools tricky if you switch focus! 🐞 #Debugging #ViewTransitions</div>
    <div class="x-arch-text x-arch-trans">怪癖 #5：视口变化 = 过渡被跳过！⚠️ 调整浏览器窗口大小、切换标签页（遮挡）或最小化窗口，都可能导致过渡中止（ skipTransition() ）。如果你切换了焦点，在 DevTools 里调试会很头疼！ 🐞 #Debugging #ViewTransitions</div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1913511298677318033" id="xl-1913511298677318033-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1913511298677318033" id="xl-1913511298677318033-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/2035310399424442368/ViEPtTe0_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/ChShersh" target="_blank" rel="nofollow noopener" data-name="Dmitrii Kovanikov" data-avatar="https://twimg.tweb.xin/twimg/profile_images/2035310399424442368/ViEPtTe0_bigger.jpg">@ChShersh</a><span class="x-arch-time">16:33</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1913511298677318033-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1913511298677318033-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/ChShersh/status/1913511298677318033" 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">I can't believe I'm losing my job to this</div>
    <div class="x-arch-text x-arch-trans">不敢相信我的工作就要被这玩意抢走了</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2025-04/1913511298677318033-poster.jpg" src="/cdn-media/x/2025-04/1913511298677318033-video.mp4" width="638" height="604" data-duration="12" aria-label="@ChShersh 的视频"></video>
  </div>
</div>
