---
title: "X 归档 2021-06-17"
date: "2021-06-17"
tags:
  - x-archive
---

<div class="x-arch-meta">4 条动态 · 图 1 · 视频 2</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-1405387270258008067" id="xl-1405387270258008067-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1405387270258008067" id="xl-1405387270258008067-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/1582880433695444992/cN6V-yKL_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/techytacos" target="_blank" rel="nofollow noopener" data-name="Elliott Marquez" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1582880433695444992/cN6V-yKL_bigger.jpg">@techytacos</a><span class="x-arch-time">12:50</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1405387270258008067-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1405387270258008067-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/techytacos/status/1405387270258008067" 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">Currently in Chrome Canary, @ChromeDevTools' Property inspector will now separate the properties defined on a Custom Element from those defined on HTMLElement.<br /><br />Take it for a spin: <a href="https://tinyurl.com/4rjufdjy" target="_blank" rel="noopener">https://tinyurl.com/4rjufdjy</a><br /><br />#WebComponents</div>
    <div class="x-arch-text x-arch-trans">目前在 Chrome Canary 中，@ChromeDevTools 的 Property inspector 现在会把 Custom Element 上定义的属性与 HTMLElement 上定义的属性区分开了。<br /><br />快来试试：<br /><br />#WebComponents</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2021-06/1405387270258008067-poster.jpg" src="/cdn-media/x/2026-10/1405387270258008067-video.mp4" width="1328" height="720" data-duration="10" aria-label="@techytacos 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1405416789375283206" id="xl-1405416789375283206-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1405416789375283206" id="xl-1405416789375283206-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/1223727567384891393/f5wKlB-t_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/gfxprogrammer" target="_blank" rel="nofollow noopener" data-name="Ken Russell 🇺🇦" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1223727567384891393/f5wKlB-t_bigger.jpg">@gfxprogrammer</a><span class="x-arch-time">14:47</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1405416789375283206-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1405416789375283206-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/gfxprogrammer/status/1405416789375283206" 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">Chrome's WebGL/WebGPU team is hiring! We have an open position for an engineer passionate about real-time computer graphics on the web. More details about the job are here: <a href="https://careers.google.com/jobs/results/119001280673653446-software-engineer-iii-graphic-webgl-and-webgpu-chrome" target="_blank" rel="noopener">https://careers.google.com/jobs/results/119001280673653446-software-engineer-iii-graphic-webgl-and-webgpu-chrome</a> . If this sounds exciting, please apply!</div>
    <div class="x-arch-text x-arch-trans">Chrome 的 WebGL/WebGPU 团队正在招人！我们有一个开放职位，面向热衷于 Web 实时计算机图形的工程师。职位详情见：<a href="https://careers.google.com/jobs/results/119001280673653446-software-engineer-iii-graphic-webgl-and-webgpu-chrome" target="_blank" rel="noopener">https://careers.google.com/jobs/results/119001280673653446-software-engineer-iii-graphic-webgl-and-webgpu-chrome</a> 。如果这听起来让你心动，欢迎投递！</div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1405433888600518659" id="xl-1405433888600518659-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1405433888600518659" id="xl-1405433888600518659-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/1582880433695444992/cN6V-yKL_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/techytacos" target="_blank" rel="nofollow noopener" data-name="Elliott Marquez" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1582880433695444992/cN6V-yKL_bigger.jpg">@techytacos</a><span class="x-arch-time">15:55</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1405433888600518659-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1405433888600518659-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/techytacos/status/1405433888600518659" 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">Currently in Chrome Canary, @ChromeDevTools' Property inspector will now separate the properties defined on a Custom Element from those defined on HTMLElement.<br /><br />Take it for a spin: <a href="https://tinyurl.com/4rjufdjy" target="_blank" rel="noopener">https://tinyurl.com/4rjufdjy</a><br /><br />#WebComponents</div>
    <div class="x-arch-text x-arch-trans">目前在 Chrome Canary 中，@ChromeDevTools 的 Property inspector 现在会把 Custom Element 上定义的属性与 HTMLElement 上定义的属性区分开了。<br /><br />快来试试：<a href="https://tinyurl.com/4rjufdjy" target="_blank" rel="noopener">https://tinyurl.com/4rjufdjy</a><br /><br />#WebComponents</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2021-06/1405433888600518659-poster.jpg" src="/cdn-media/x/2021-06/1405433888600518659-video.mp4" width="1328" height="720" data-duration="10" aria-label="@techytacos 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1405437361643790337" id="xl-1405437361643790337-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1405437361643790337" id="xl-1405437361643790337-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/1695239906/me_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/jaffathecake" target="_blank" rel="nofollow noopener" data-name="Jake Archibald" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1695239906/me_bigger.jpg">@jaffathecake</a><span class="x-arch-time">16:09</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1405437361643790337-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1405437361643790337-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/jaffathecake/status/1405437361643790337" 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">TIL ResizeObserver &amp; IntersectionObserver need to be manually disconnected, else they leak memory through their callback.<br /><br />This happens in all browsers.<br /><br />MutationObserver and event listeners don't have this issue.<br /><br />Make sure you manually disconnect resize/intersection observers!</div>
    <div class="x-arch-text x-arch-trans">TIL：ResizeObserver 和 IntersectionObserver 需要手动 disconnect，否则它们会通过 callback 泄漏内存。<br /><br />所有浏览器都有这个问题。<br /><br />MutationObserver 和事件监听器没有这个问题。<br /><br />记得手动断开 resize/intersection observer！</div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2026-10/1405437361643790337-1.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-10/1405437361643790337-1.jpg" alt="@jaffathecake 的配图 1/1" loading="lazy" decoding="async" width="1279" height="2048" /></a>
    </div>
  </div>
</div>
