<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Leo</title>
    <description>The latest articles on DEV Community by Leo (@leobaniak).</description>
    <link>https://dev.to/leobaniak</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3997121%2F061e76e1-0a08-4d9d-827c-24f1e8b9e15b.png</url>
      <title>DEV Community: Leo</title>
      <link>https://dev.to/leobaniak</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/leobaniak"/>
    <language>en</language>
    <item>
      <title>Collapsed content shouldn't vanish from find-in-page. hidden=\"until-found\" stops that</title>
      <dc:creator>Leo</dc:creator>
      <pubDate>Sat, 05 Dec 2026 16:07:36 +0000</pubDate>
      <link>https://dev.to/leobaniak/collapsed-content-shouldnt-vanish-from-find-in-page-hiddenuntil-found-stops-that-3i4e</link>
      <guid>https://dev.to/leobaniak/collapsed-content-shouldnt-vanish-from-find-in-page-hiddenuntil-found-stops-that-3i4e</guid>
      <description>&lt;p&gt;A reader lands on a news story cut in half by a "Continue reading" button. They want one detail, the departure time, so they press Ctrl+F and type it. Zero results. The text is right there on the page.&lt;/p&gt;

&lt;p&gt;Roy Keur opens day 4 of the HTMHell Advent Calendar with exactly that pattern, and it fails more than the find bar. A link to a page anchor inside the collapsed part goes nowhere. A text fragment URL like &lt;code&gt;#:~:text=departure%20time&lt;/code&gt; highlights nothing. For anyone who gets around long pages by searching or following deep links, the collapsed part of your page doesn't exist.&lt;/p&gt;

&lt;h2&gt;
  
  
  What display: none takes away
&lt;/h2&gt;

&lt;p&gt;Here is the simplified markup Keur uses for that "Continue reading" pattern:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"button"&lt;/span&gt; &lt;span class="na"&gt;aria-expanded&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"false"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Continue reading this article
&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;data-readmore-hidden&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"1"&lt;/span&gt; &lt;span class="na"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"display: none;"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    You can either use a catamaran, which takes one hour and fifteen minutes with departure time at 11:30, or take the slower cruise ship which takes two hours and 30 minutes, with departure time at 9:30.
&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keur's point is that &lt;code&gt;display: none&lt;/code&gt; hides content from the user agent too, and the user agent runs the search. The &lt;code&gt;hidden&lt;/code&gt; attribute is no better, because the user agent stylesheet applies &lt;code&gt;display: none&lt;/code&gt; to it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What until-found does differently
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;hidden="until-found"&lt;/code&gt; uses &lt;code&gt;content-visibility: hidden&lt;/code&gt; instead. The element keeps its box and its contents go unrendered. The browser also holds on to state such as scroll positions, where &lt;code&gt;display: none&lt;/code&gt; throws it away.&lt;/p&gt;

&lt;p&gt;When a find-in-page search or a text fragment matches text inside that element, the browser fires a &lt;code&gt;beforematch&lt;/code&gt; event on the element, removes &lt;code&gt;until-found&lt;/code&gt;, then scrolls to the match. The attribute stays off for the rest of the session, even after the find bar closes.&lt;/p&gt;

&lt;p&gt;Keur states two limits. Setting &lt;code&gt;content-visibility&lt;/code&gt; yourself doesn't make an element searchable; only &lt;code&gt;hidden="until-found"&lt;/code&gt; does. And the value does not expose the content to screen readers, so don't count it as an assistive-tech fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wiring it into an accordion
&lt;/h2&gt;

&lt;p&gt;Keur starts from the Accordion Example in the ARIA Authoring Practices Guide, which already hides its panels with &lt;code&gt;hidden&lt;/code&gt;. Making the panels searchable means adding one value to an attribute that's already there:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"sect1"&lt;/span&gt; &lt;span class="na"&gt;role&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"region"&lt;/span&gt; &lt;span class="na"&gt;aria-labelledby&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"accordion1id"&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"accordion-panel"&lt;/span&gt; &lt;span class="na"&gt;hidden&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"until-found"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Some hidden content.
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You still need JavaScript to toggle the panel and keep &lt;code&gt;aria-expanded&lt;/code&gt; in sync with it. Listen for &lt;code&gt;beforematch&lt;/code&gt; and update the trigger button when a search opens its panel. Skip that and the button still reports the panel as collapsed after a search has opened it. Keur notes that &lt;code&gt;beforematch&lt;/code&gt; only fires on elements with &lt;code&gt;hidden="until-found"&lt;/code&gt;, so a listener on content you've clipped some other way never fires.&lt;/p&gt;

&lt;p&gt;Why not just use &lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt;? It works the same way underneath, with &lt;code&gt;content-visibility&lt;/code&gt;, and you get native collapse plus a visible marker for free. Use it when you can. Keur's case for the scripted accordion is headings. Put one inside &lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt;, as Scott O'Hara has documented, and browsers and screen readers may treat it as presentational. An accordion built on &lt;code&gt;hidden="until-found"&lt;/code&gt; keeps its &lt;code&gt;&amp;lt;h3&amp;gt;&lt;/code&gt; intact. The trade-off is that &lt;code&gt;until-found&lt;/code&gt; gives sighted users no visual hint that anything is collapsed, so your trigger button has to do that job.&lt;/p&gt;

&lt;h2&gt;
  
  
  Support and the fallback
&lt;/h2&gt;

&lt;p&gt;According to Keur, Chromium has shipped &lt;code&gt;hidden="until-found"&lt;/code&gt; since Chrome 102 in 2022, and Firefox 148 followed in February 2026. Safari 26.2 shipped it in December 2025 along with &lt;code&gt;beforematch&lt;/code&gt;. Safari's support still counts as partial because it doesn't yet scroll to the revealed match (WebKit bug 304174).&lt;/p&gt;

&lt;p&gt;Browsers that don't support it treat the attribute as plain &lt;code&gt;hidden&lt;/code&gt;, so the fallback is &lt;code&gt;display: none&lt;/code&gt;. That's a progressive enhancement, but Keur would rather the fallback show the content with &lt;code&gt;display: block&lt;/code&gt;. When JavaScript is disabled, he would also set &lt;code&gt;content-visibility: visible&lt;/code&gt; and hide the toggle button, using &lt;code&gt;@media (scripting: none)&lt;/code&gt;. I agree. A fallback that hides content still loses it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reader mode gap
&lt;/h2&gt;

&lt;p&gt;Here is the part that should slow you down. Reader mode is non-standard and each engine implements it differently, but Keur's rule of thumb is that hidden content stays hidden, and &lt;code&gt;until-found&lt;/code&gt; is no exception: "Any element with the hidden attribute set, even with until-found as its value and even when overridden with display: block, will always be hidden in reader mode."&lt;/p&gt;

&lt;p&gt;People switch to reader mode because they need the page easier to read. On a long article where you collapse sections with &lt;code&gt;until-found&lt;/code&gt;, those readers lose the collapsed sections. The only workaround Keur sees is duplicating the content and hiding the copy some other way, such as &lt;code&gt;opacity: 0&lt;/code&gt; or clipping, and he doesn't recommend it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verdict
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;hidden="until-found"&lt;/code&gt; is a real fix for a real exclusion, and it builds on HTML you probably already ship. Treat it as a findability fix and nothing more. It doesn't help screen reader users, and it doesn't help reader mode users at all.&lt;/p&gt;

&lt;p&gt;Before your next PR:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Collapsing content in an accordion or a "read more"? Use &lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt; or &lt;code&gt;hidden="until-found"&lt;/code&gt;, not &lt;code&gt;display: none&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Handle &lt;code&gt;beforematch&lt;/code&gt; and update &lt;code&gt;aria-expanded&lt;/code&gt; when a search reveals a panel.&lt;/li&gt;
&lt;li&gt;Make sure the trigger button shows that content is collapsed, since &lt;code&gt;until-found&lt;/code&gt; won't.&lt;/li&gt;
&lt;li&gt;Decide on purpose what non-supporting browsers and no-JS sessions show. Visible beats gone.&lt;/li&gt;
&lt;li&gt;On long-form articles, ask whether the content needs collapsing at all. Reader mode will hide it either way.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>html</category>
      <category>hiddenattribute</category>
      <category>untilfound</category>
      <category>a11y</category>
    </item>
    <item>
      <title>Chrome 157 joins Firefox on custom text-overflow strings, with Safari in beta</title>
      <dc:creator>Leo</dc:creator>
      <pubDate>Fri, 04 Dec 2026 16:07:28 +0000</pubDate>
      <link>https://dev.to/leobaniak/chrome-157-joins-firefox-on-custom-text-overflow-strings-with-safari-in-beta-25be</link>
      <guid>https://dev.to/leobaniak/chrome-157-joins-firefox-on-custom-text-overflow-strings-with-safari-in-beta-25be</guid>
      <description>&lt;p&gt;This one has been sitting in Firefox for fifteen years. Firefox shipped &lt;code&gt;text-overflow: &amp;lt;string&amp;gt;&lt;/code&gt; in Firefox 9, back in 2011. Daniel Schwarz reports on CSS-Tricks that Chrome 157 has now implemented it and Safari 27.3 Beta has shipped it as well, so he expects it to reach Baseline soon. Note the word "expects". Baseline isn't declared yet, and the Safari support is still in a beta.&lt;/p&gt;

&lt;p&gt;What it does is small and very welcome. Truncated single-line text used to end in one of two ways, &lt;code&gt;ellipsis&lt;/code&gt; or &lt;code&gt;clip&lt;/code&gt;. Now the value can be any string you put in quotes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed
&lt;/h2&gt;

&lt;p&gt;The single-value syntax takes a string in place of a keyword. Here's the example from the article, which cuts the line off with an em dash:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;inline-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;170px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;white-space&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;nowrap&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;overflow-inline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;hidden&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;text-overflow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"—"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Schwarz points to the editorial reasons you'd want something other than an ellipsis. An em dash reads as interrupted dialogue, and he lists &lt;code&gt;[truncated]&lt;/code&gt;, &lt;code&gt;[sic]&lt;/code&gt;, &lt;code&gt;[snip]&lt;/code&gt; and &lt;code&gt;[excerpt]&lt;/code&gt; as other common bracketed markers.&lt;/p&gt;

&lt;p&gt;The one I'd reach for first is the empty string. &lt;code&gt;text-overflow: ""&lt;/code&gt; truncates the overflowing characters without adding anything in their place. That sounds like &lt;code&gt;clip&lt;/code&gt;, but the article draws the line clearly: the default &lt;code&gt;text-overflow: clip&lt;/code&gt; can leave fractional characters hanging at the edge, while the empty string removes the overflowing characters outright. If you've ever shipped a label that ends in half a letter, this is your fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rules haven't moved
&lt;/h2&gt;

&lt;p&gt;A string doesn't loosen any of the old requirements. Per the source, the text still has to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;overflow in the inline direction&lt;/li&gt;
&lt;li&gt;sit under &lt;code&gt;white-space: nowrap&lt;/code&gt;, so it stays on one line&lt;/li&gt;
&lt;li&gt;have &lt;code&gt;overflow&lt;/code&gt; set to anything other than &lt;code&gt;visible&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So if your custom marker isn't showing up, check those three before you blame the browser. And for text that wraps across several lines, this isn't the tool. That job belongs to &lt;code&gt;line-clamp&lt;/code&gt;, which Schwarz calls essentially the same thing for multi-line text, with one difference: it can only truncate the last line.&lt;/p&gt;

&lt;p&gt;The single-value syntax also respects &lt;code&gt;direction&lt;/code&gt;, so it behaves logically in right-to-left text without extra work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rough edges
&lt;/h2&gt;

&lt;p&gt;Two limits from the article worth knowing before you design around this. The string isn't clickable, so you can't turn your marker into a "read more" link. And truncation isn't animatable.&lt;/p&gt;

&lt;p&gt;You can still get a reveal-on-hover effect by moving the truncation rules behind &lt;code&gt;:not(:hover)&lt;/code&gt;, as the article shows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nf"&gt;not&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;hover&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;white-space&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;nowrap&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;overflow-inline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;hidden&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;text-overflow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"▾"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Hover the container and the full text comes back. Keep in mind this only helps pointer users. Someone on a touchscreen or a keyboard won't trigger &lt;code&gt;:hover&lt;/code&gt;, so the full text needs another route to them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where support stands
&lt;/h2&gt;

&lt;p&gt;Here's the state of things according to the source:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Single-value syntax: Firefox since version 9 (2011), Chrome 157, Safari 27.3 Beta.&lt;/li&gt;
&lt;li&gt;Two-value syntax: Firefox only.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The two-value form puts a string at each end of a scrollable container, inline-start first and inline-end second:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;overflow-inline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;scroll&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;text-overflow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"///"&lt;/span&gt; &lt;span class="n"&gt;ellipsis&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="cm"&gt;/* &amp;lt;inline-start&amp;gt; &amp;lt;inline-end&amp;gt; */&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With only one engine behind it, I'd treat that one as a progressive enhancement and nothing more.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'm watching next
&lt;/h2&gt;

&lt;p&gt;Two things. First, whether Safari's support makes it out of beta, since that is the step Schwarz is counting on for Baseline. Second, &lt;code&gt;fade()&lt;/code&gt;. The article describes it as a future value where &lt;code&gt;text-overflow: fade(1em)&lt;/code&gt; would start fading the line &lt;code&gt;1em&lt;/code&gt; from the end of the line box and &lt;code&gt;fade(10%)&lt;/code&gt; would start &lt;code&gt;10%&lt;/code&gt; from the end, fully transparent by the edge either way. Nothing in the source says any browser ships it yet, so for now it's a sketch. A good one, though.&lt;/p&gt;

</description>
      <category>css</category>
      <category>textoverflow</category>
      <category>typography</category>
      <category>browsersupport</category>
    </item>
    <item>
      <title>Your Enter-key handler submits forms mid-word for CJK typists</title>
      <dc:creator>Leo</dc:creator>
      <pubDate>Thu, 03 Dec 2026 16:07:33 +0000</pubDate>
      <link>https://dev.to/leobaniak/your-enter-key-handler-submits-forms-mid-word-for-cjk-typists-1j8</link>
      <guid>https://dev.to/leobaniak/your-enter-key-handler-submits-forms-mid-word-for-cjk-typists-1j8</guid>
      <description>&lt;p&gt;You wired up a search field. Enter submits. A &lt;code&gt;keydown&lt;/code&gt; listener, an &lt;code&gt;event.key === "Enter"&lt;/code&gt; check, done. It works on your keyboard.&lt;/p&gt;

&lt;p&gt;Now type 標準化団体 with a Japanese IME. You type the sounds, the IME offers the characters, and you press Enter to accept the conversion. Your handler hears that Enter too. The form goes out before the user is finished.&lt;/p&gt;

&lt;p&gt;That's the bug mehm8128 takes apart in day 3 of the HTMHell Advent Calendar. It affects Chinese, Japanese and Korean users, anyone typing through an Input Method Editor. And the obvious fix has a hole in it, thanks to event ordering in one engine.&lt;/p&gt;

&lt;h2&gt;
  
  
  The handler that causes it
&lt;/h2&gt;

&lt;p&gt;This is the pattern the article starts from:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;inputElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"keydown"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"Enter"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;submit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The mechanism is short. An IME runs at the OS level and converts phonetic input into characters, a step called composition. Enter is usually the key that confirms it. But &lt;code&gt;keydown&lt;/code&gt; can fire while composition is still in progress. So the confirming Enter reaches your listener, the check passes, and &lt;code&gt;submit()&lt;/code&gt; runs.&lt;/p&gt;

&lt;p&gt;Enter isn't the only key at risk. The article names Tab, the arrow keys and Esc as keys people use to operate the IME. Bind any of them as a page shortcut and you get the same collision.&lt;/p&gt;

&lt;h2&gt;
  
  
  isComposing, and the Safari wrinkle
&lt;/h2&gt;

&lt;p&gt;The standard guard is &lt;code&gt;event.isComposing&lt;/code&gt;, which tells you whether an IME composition is in progress:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;inputElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"keydown"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isComposing&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"Enter"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;submit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Per the spec, the &lt;code&gt;keydown&lt;/code&gt; of the Enter that confirms the composition fires before &lt;code&gt;compositionend&lt;/code&gt;. So &lt;code&gt;isComposing&lt;/code&gt; is &lt;code&gt;true&lt;/code&gt; at that moment, and the guard returns early. &lt;strong&gt;Safari reverses the order.&lt;/strong&gt; In the article's words: "Safari fires &lt;code&gt;compositionend&lt;/code&gt; first, so &lt;code&gt;event.isComposing&lt;/code&gt; is already &lt;code&gt;false&lt;/code&gt; and the guard doesn't work."&lt;/p&gt;

&lt;p&gt;The guard you write straight from the spec fails in one browser. Ordering bugs are the nasty kind. Nothing in the code looks wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  The guard to ship today
&lt;/h2&gt;

&lt;p&gt;Add a &lt;code&gt;keyCode&lt;/code&gt; check. According to the article, 229 is the &lt;code&gt;keyCode&lt;/code&gt; browsers use for key events handled by an IME:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;inputElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"keydown"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isComposing&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;keyCode&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;229&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"Enter"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;submit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Why not wait for WebKit? The article says WebKit landed a fix in April 2026, then disabled it again in June 2026 because of too many regression reports. The correct ordering is still behind a feature flag that's off by default. The author's advice is to keep the &lt;code&gt;keyCode&lt;/code&gt; check for now.&lt;/p&gt;

&lt;p&gt;One more platform detail from the post. On Windows, the &lt;code&gt;keydown&lt;/code&gt; fired during composition usually has &lt;code&gt;event.key === "Process"&lt;/code&gt;, so even the naive Enter check avoids the problem there. That's also how a bug like this can pass a test run done only on a Windows machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Or stop listening to keydown
&lt;/h2&gt;

&lt;p&gt;My favourite fix deletes code. The article's alternative is to use the native &lt;code&gt;submit&lt;/code&gt; event of the &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; element instead of &lt;code&gt;keydown&lt;/code&gt;, or to move the shortcut from Enter to Ctrl + Enter. Either way you stop hand-parsing keystrokes to decide when a form is done.&lt;/p&gt;

&lt;p&gt;The catch, which the author flags: this only helps with Enter. A Tab or arrow-key shortcut still needs the guard.&lt;/p&gt;

&lt;p&gt;It's the same lesson I keep hitting in CSS. Hand-rolled behaviour on a generic element is a re-implementation, and re-implementations pick up edge cases you never thought to test. Reach for the form first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who is working on it
&lt;/h2&gt;

&lt;p&gt;The post lists efforts mostly started by Japanese developers. There's an ESLint rule, eslint-plugin-ime-safe-form, and a discussion about adding a similar rule to Biome. There's an issue and a PR to add a sufficient technique to WCAG 2, and a whatwg/html issue asking whether IME composition should be treated as a distinct input context. Another issue asks for a page on it in the W3C Internationalization resources. Per the article, some projects, WordPress among them, have started to handle it.&lt;/p&gt;

&lt;p&gt;The author is open about not knowing where this should ultimately be fixed: the OS, the IME, the browser, or developer code. Until someone settles that, it's on you. Next time you put a key listener on a form field, switch on a Japanese IME, type a word, press Enter. Then do it again in Safari.&lt;/p&gt;

</description>
      <category>forms</category>
      <category>ime</category>
      <category>keyboardevents</category>
      <category>internationalization</category>
    </item>
    <item>
      <title>A canvas is a blank image to a screen reader until you give it HTML</title>
      <dc:creator>Leo</dc:creator>
      <pubDate>Wed, 02 Dec 2026 16:08:27 +0000</pubDate>
      <link>https://dev.to/leobaniak/a-canvas-is-a-blank-image-to-a-screen-reader-until-you-give-it-html-jf2</link>
      <guid>https://dev.to/leobaniak/a-canvas-is-a-blank-image-to-a-screen-reader-until-you-give-it-html-jf2</guid>
      <description>&lt;p&gt;A four-year-old taps a letter on a tablet and hears a cheerful sound. Another four-year-old, using a screen reader, gets silence. Rhiana Heppenstall puts it plainly: canvas elements "are not accessible to keyboards and screen readers. They are treated as blank images."&lt;/p&gt;

&lt;p&gt;Heppenstall, an accessibility lead at 3P Learning, wrote up how her team fixed that for the Readingeggs reading activities on day 2 of the HTMHell Advent Calendar. The activities moved from Flash to canvas when Flash declined, especially for iOS apps, in 2010. Rewriting thousands of them wasn't realistic, and an alt-text-style description couldn't cover activities this detailed. Fallback HTML was the lower-risk option, and it could ship incrementally without interrupting anyone's learning.&lt;/p&gt;

&lt;h2&gt;
  
  
  A second interface behind the drawing
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt; element is designed to carry fallback HTML for when it doesn't load. Heppenstall's team turned that fallback into a real interface: headings, text and buttons a screen reader can read out. JavaScript links each interactive HTML element to the image or text drawn on the canvas, so a keyboard user gets interactivity and a visible focus state. She credits a canvas demo by Paul J. Adam as the inspiration.&lt;/p&gt;

&lt;p&gt;One detail could save you a day of debugging. The documentation said to put the fallback inside the &lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt;, but the team found that wasn't compatible with Safari. Placing the HTML after the element fixed it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;canvas&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/canvas&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Activity Title&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Instructions&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;button&amp;gt;&lt;/span&gt;Press me!&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Heppenstall adds that Chrome is working on exposing the HTML inside a canvas to the browser through a &lt;code&gt;content="drawable"&lt;/code&gt; attribute, which she says isn't standard practice yet and has limited browser support.&lt;/p&gt;

&lt;h2&gt;
  
  
  One letter grid, marked up
&lt;/h2&gt;

&lt;p&gt;The worked example is a letter grid where the child finds every "i". The top bar has no words, because preschoolers may not read yet, so every icon needs a spoken equivalent that means something. Reading out "2/2" or "speaker icon" tells a child nothing. The team settled on this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Letter grid&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;header&lt;/span&gt; &lt;span class="na"&gt;aria-label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Top Bar"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;Round 2 of 2&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;aria-live&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"polite"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;2 lives remaining&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;button&amp;gt;&lt;/span&gt;Play Instructions&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/header&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; names the activity, whose title is otherwise visible only on the instructions page before it. The lives counter carries &lt;code&gt;aria-live="polite"&lt;/code&gt; because a life can be lost at any moment. The replay button is a real &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt;, and when it has keyboard focus a custom outline appears around its canvas counterpart, much like a native button's focus ring.&lt;/p&gt;

&lt;p&gt;The grid itself is a list of buttons inside a labelled section:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt; &lt;span class="na"&gt;aria-label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Activity Content"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;ul&lt;/span&gt; &lt;span class="na"&gt;aria-label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Click on 'i'"&lt;/span&gt; &lt;span class="na"&gt;aria-description&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Find and select all the letters matching 'i'"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  ...
  &lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"true"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;i&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;button&amp;gt;&lt;/span&gt;o&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The list tells a screen reader user how many items there are, and keyboard users can Tab between the letters. A correct letter changes colour and gets the &lt;code&gt;disabled&lt;/code&gt; attribute, so the keyboard state matches what a mouse user sees. The &lt;code&gt;aria-description&lt;/code&gt; holds instructions more specific than the audio prompt, which a child who is also hearing impaired can read on a braille display.&lt;/p&gt;

&lt;p&gt;A wrong answer triggers a hidden message (Heppenstall notes &lt;code&gt;role="status"&lt;/code&gt; would also work):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;aria-live&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"polite"&lt;/span&gt; &lt;span class="na"&gt;aria-atomic&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"true"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;"l" is incorrect. Try again.&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The progress tracker, drawn as stars, became one line of text instead of images a user would have to count one by one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;aria-description&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Scoreboard"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;2 out of 6 found.&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Where the team made judgement calls
&lt;/h2&gt;

&lt;p&gt;This section is the best part of the post, because it doesn't pretend the answers are obvious. The team didn't write "Lower case i" into the labels, because VoiceOver and the other screen readers they tested have settings that describe each character. The user's own tool already handles it, which is the right place for it.&lt;/p&gt;

&lt;p&gt;In two-dimensional grids, some pages support arrow keys as well as Tab. Heppenstall flags the risk herself: custom key handling may not be intuitive and may confuse screen readers.&lt;/p&gt;

&lt;p&gt;On forms, Heppenstall writes that the WCAG guidelines recommend &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; controls with &lt;code&gt;&amp;lt;legend&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt; and a submit &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; for question-and-answer content. The team kept plain buttons that submit when pressed, with screen reader instructions saying so, because that matches the visual experience for children as young as four. She describes it as possibly a technical violation but not one in spirit. I agree. An extra submit step that sighted children never see would make the accessible version a harder activity, and announcing the behaviour up front is what makes the choice defensible.&lt;/p&gt;

&lt;h2&gt;
  
  
  My verdict, and what to take to your next canvas PR
&lt;/h2&gt;

&lt;p&gt;Heppenstall says that if they built it today, the team might use the drawable approach or skip canvas entirely. For canvas interfaces that already exist, though, fallback HTML is a fix you can ship one screen at a time. The gap is testing, which so far has mostly been VoiceOver on Safari, since many students use iPads. The team's stated next step is user testing with native screen reader users, ideally young ones, across a variety of screen readers. &lt;strong&gt;Until that happens, treat the markup as a strong first draft, not a finished answer.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you own a canvas UI:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Mirror every drawn control with a real &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; or link, and tie its keyboard focus to a visible outline on the canvas.&lt;/li&gt;
&lt;li&gt;Check where the fallback sits in Safari. Heppenstall's team had to move it after the &lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Put &lt;code&gt;aria-live="polite"&lt;/code&gt; on state that can change at any moment, like lives and wrong answers.&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;disabled&lt;/code&gt; to anything that can't be pressed again, so keyboard and mouse users see the same state.&lt;/li&gt;
&lt;li&gt;Test with people who use screen readers every day, not only your own VoiceOver session.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>canvas</category>
      <category>a11y</category>
      <category>html</category>
      <category>screenreaders</category>
    </item>
    <item>
      <title>timeline-scope lets one carousel drive another, no scroll listener required</title>
      <dc:creator>Leo</dc:creator>
      <pubDate>Mon, 30 Nov 2026 16:07:42 +0000</pubDate>
      <link>https://dev.to/leobaniak/timeline-scope-lets-one-carousel-drive-another-no-scroll-listener-required-416h</link>
      <guid>https://dev.to/leobaniak/timeline-scope-lets-one-carousel-drive-another-no-scroll-listener-required-416h</guid>
      <description>&lt;p&gt;You know the synced-carousel pattern. Scroll the main strip of products and a second strip somewhere else on the page rolls along with it. You also know how it usually gets built: a &lt;code&gt;scroll&lt;/code&gt; listener, a ratio worked out by hand, and a resize handler bolted on after the first bug report. That's a lot of moving parts to make two lists agree on one number.&lt;/p&gt;

&lt;p&gt;In a CSS-Tricks article published November 30, Preethi builds it in vanilla CSS. The property doing the heavy lifting is &lt;code&gt;timeline-scope&lt;/code&gt;. Here's how the pieces fit together, and why it belongs on the decorative shelf for now.&lt;/p&gt;

&lt;h2&gt;
  
  
  The scoping rule you keep running into
&lt;/h2&gt;

&lt;p&gt;Named animation timelines have a visibility rule. As the article puts it, an animation timeline can only serve the element that defines it and that element's descendants. Name a scroll timeline on carousel A and A's children can animate against it. Carousel B, sitting next to A as a sibling, can't see the name at all.&lt;/p&gt;

&lt;p&gt;That's the wall. In a normal layout two carousels are siblings, not parent and child. (Nobody nests a product strip inside another product strip. Please don't start.)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;timeline-scope&lt;/code&gt; moves the wall up a level. Put it on an ancestor the two elements share, give it the timeline's name, and every element under that ancestor can use the timeline. One scroll, many elements.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wiring two strips to one scroll position
&lt;/h2&gt;

&lt;p&gt;The demo markup has a secondary carousel (&lt;code&gt;.cs&lt;/code&gt;, with &lt;code&gt;.cs-slide&lt;/code&gt; items) and a primary one (&lt;code&gt;.cp&lt;/code&gt;, with &lt;code&gt;.cp-slide&lt;/code&gt; items). They sit in reverse order in the markup because of how they're positioned on screen. The primary scrolls horizontally with snapping. The secondary gets &lt;code&gt;overflow: clip&lt;/code&gt;, so it can't scroll at all and only moves when the animation moves it.&lt;/p&gt;

&lt;p&gt;The keyframes push the secondary slides to the left:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@keyframes&lt;/span&gt; &lt;span class="nt"&gt;cs-scroll&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;translateX&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;calc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;-100&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;sibling-count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you link everything up:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.carousels&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;timeline-scope&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;--carousel-scroll&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.cp&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;overflow-x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;scroll-snap-type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="n"&gt;mandatory&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;scroll-timeline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;--carousel-scroll&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.cp-slide&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;scroll-snap-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.cs&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;overflow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;clip&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.cs-slide&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;animation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;cs-scroll&lt;/span&gt; &lt;span class="n"&gt;linear&lt;/span&gt; &lt;span class="n"&gt;forwards&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-timeline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;--carousel-scroll&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read it top to bottom. &lt;code&gt;scroll-timeline&lt;/code&gt; on &lt;code&gt;.cp&lt;/code&gt; creates a timeline called &lt;code&gt;--carousel-scroll&lt;/code&gt; that follows its scroll on the x axis. &lt;code&gt;animation-timeline&lt;/code&gt; on each &lt;code&gt;.cs-slide&lt;/code&gt; asks for that name. &lt;code&gt;timeline-scope&lt;/code&gt; on the shared parent is what lets the lookup succeed. In the main demo that parent is &lt;code&gt;body&lt;/code&gt;, because both carousels are its direct children. The article shows the same setup on a wrapper like &lt;code&gt;.carousels&lt;/code&gt; if your markup has one.&lt;/p&gt;

&lt;p&gt;Notice there's no duration anywhere. You don't need one, and you don't need a delay either, because the animation's progress comes from the scroll position and not from the clock.&lt;/p&gt;

&lt;p&gt;Also, that &lt;code&gt;sibling-count()&lt;/code&gt; in the keyframes is doing sneaky work. It counts the direct children of the slide's parent, so the translate distance follows however many slides you have. No hardcoded &lt;code&gt;-200%&lt;/code&gt; that breaks the day someone adds a fourth slide. Without it, the article says your fallback is indexing items with custom properties right in the markup, which Preethi calls "definitely more cumbersome."&lt;/p&gt;

&lt;h2&gt;
  
  
  One timeline can feed several animations
&lt;/h2&gt;

&lt;p&gt;The scope is not a one-to-one pipe. According to the article you can do this for as many children as you want, and they don't all have to run the same animation. A stats panel and a thumbnail strip can both follow the same carousel's scroll position, each with its own keyframes.&lt;/p&gt;

&lt;p&gt;Preethi's reference points are the car select screen in a racing game, where each car's specs roll past as you browse, and the rotating player profiles on a TV match broadcast. I've lost whole evenings in racing-game garages, flipping through cars I couldn't afford. Seeing that screen come out of a few CSS declarations instead of a scroll handler makes me happier than it probably should.&lt;/p&gt;

&lt;h2&gt;
  
  
  The support fine print
&lt;/h2&gt;

&lt;p&gt;The article raises two caveats, and you should take both seriously:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;timeline-scope&lt;/code&gt; is not yet Baseline. Preethi recommends it for decorative parts of a page, not for important functionality.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sibling-count()&lt;/code&gt; is described as nearing Baseline but still rolling out, and not prime time for production.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So treat the synced strip as an enhancement. If the secondary carousel holds something a person actually needs, like the price or the spec that decides the purchase, make sure they can get to it without this animation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where I land
&lt;/h2&gt;

&lt;p&gt;The scroll-listener version had a good run. For decorative syncing, this is the tighter build: one named timeline, one scope on the shared parent, and zero JavaScript. Eight out of ten. I'm holding back the last two points until &lt;code&gt;timeline-scope&lt;/code&gt; reaches Baseline.&lt;/p&gt;

</description>
      <category>css</category>
      <category>scrolldrivenanimations</category>
      <category>timelinescope</category>
      <category>carousels</category>
    </item>
    <item>
      <title>light-dark() fails silently, so decide what the failure looks like</title>
      <dc:creator>Leo</dc:creator>
      <pubDate>Sat, 28 Nov 2026 16:07:50 +0000</pubDate>
      <link>https://dev.to/leobaniak/light-dark-fails-silently-so-decide-what-the-failure-looks-like-2d13</link>
      <guid>https://dev.to/leobaniak/light-dark-fails-silently-so-decide-what-the-failure-looks-like-2d13</guid>
      <description>&lt;p&gt;One person reading your site at night has asked their operating system for Dark Mode. Another, a dyslexic reader, finds text easier when it isn't pure black on pure white. Both depend on colour declarations that their browser may not understand. When it doesn't, they get whatever is left over.&lt;/p&gt;

&lt;p&gt;That is the warning behind a short CSS-Tricks post from Geoff Graham, dated 27 November. It links to Martin Underhill's article "Using light-dark() without getting caught out" on tempertemper.net. Graham says he hadn't thought about getting caught out by &lt;code&gt;light-dark()&lt;/code&gt;, even though he leans on it heavily for CSS-Tricks. He then shows how he arranges his own colour tokens around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two values and a prerequisite
&lt;/h2&gt;

&lt;p&gt;Underhill's explanation is short. &lt;code&gt;light-dark()&lt;/code&gt; takes two values. The browser uses the first in Light Mode and the second in Dark Mode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;light-dark&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;black&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;white&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;light-dark&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;white&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;black&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before it does anything, you have to tell the browser which colour schemes the site supports. You can do that with a &lt;code&gt;meta&lt;/code&gt; element in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;, or in CSS on &lt;code&gt;:root&lt;/code&gt;, which Underhill says is the better choice in most cases:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"color-scheme"&lt;/span&gt; &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"light dark"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;root&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color-scheme&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;light&lt;/span&gt; &lt;span class="n"&gt;dark&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  When the browser says no, it drops everything
&lt;/h2&gt;

&lt;p&gt;Underhill had hoped an older browser might still pull a colour out of &lt;code&gt;light-dark()&lt;/code&gt; even if it didn't understand the function. It doesn't. It ignores the entire declaration. He put support at just under 90% when he wrote the piece. That leaves a real group of visitors who see browser defaults, which he says are typically black text on white in Light Mode and white text on dark grey in Dark Mode. His own site looks fine that way, but he still calls skipping fallbacks risky and says to test thoroughly.&lt;/p&gt;

&lt;p&gt;The anti-pattern is assuming the remaining visitors see something close enough. The fix is the oldest trick in CSS, a declaration the browser does understand placed first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;light-dark&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;black&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;white&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nt"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;white&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;light-dark&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;white&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;black&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A browser without support applies the first line and discards the second.&lt;/p&gt;

&lt;h2&gt;
  
  
  Grey on grey
&lt;/h2&gt;

&lt;p&gt;Every team should read this section of Underhill's article. His fallback text colour is an off-black, &lt;code&gt;#0b0c0c&lt;/code&gt;, because high-contrast black text on a white background can cause visual stress for some dyslexic readers. That's a good call. It also exposed a gap. According to Underhill, &lt;code&gt;color-scheme&lt;/code&gt; got solid support in early 2022 and &lt;code&gt;light-dark()&lt;/code&gt; in mid 2024, and some browsers, with Opera Mini as his example, still support the first but not the second.&lt;/p&gt;

&lt;p&gt;So picture a visitor in that gap who prefers Dark Mode. &lt;code&gt;color-scheme&lt;/code&gt; gives them the browser's dark background. &lt;code&gt;light-dark()&lt;/code&gt; is ignored. His dark grey fallback text sits on a dark background. Two sensible decisions, made separately, add up to text nobody can read comfortably.&lt;/p&gt;

&lt;p&gt;His fix turns on both colour schemes only when &lt;code&gt;light-dark()&lt;/code&gt; works:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@supports&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;light-dark&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;black&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;white&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;color-scheme&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;light&lt;/span&gt; &lt;span class="n"&gt;dark&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Browsers with the mismatch skip the block, so the fallback text stays on the normal light background.&lt;/p&gt;

&lt;h2&gt;
  
  
  Name the job, not the direction
&lt;/h2&gt;

&lt;p&gt;Graham's half of the post is about developer experience. Writing &lt;code&gt;prefers-color-scheme&lt;/code&gt; media queries over and over got cumbersome, so he moved to &lt;code&gt;light-dark()&lt;/code&gt;, then to custom properties so he wasn't typing two values every time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;root&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;--gray-1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#eaeaea&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="cm"&gt;/* Light */&lt;/span&gt;
  &lt;span class="cm"&gt;/* ... */&lt;/span&gt;
  &lt;span class="nv"&gt;--gray-10&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#111&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="cm"&gt;/* Dark */&lt;/span&gt;

  &lt;span class="nv"&gt;--text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;light-dark&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--gray-1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--gray-10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.article-content&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From there he tries &lt;code&gt;--surface&lt;/code&gt;, &lt;code&gt;--text-reverse&lt;/code&gt; and &lt;code&gt;--surface-reverse&lt;/code&gt;, then settles on two generic tokens, &lt;code&gt;--light-dark&lt;/code&gt; and &lt;code&gt;--dark-light&lt;/code&gt;. His own verdict: "Perfect, no. But I'm pretty happy with it."&lt;/p&gt;

&lt;p&gt;My concern is contrast, which is always about a pair: text against the surface under it. A token called &lt;code&gt;--dark-light&lt;/code&gt; says which way it flips, not what it's for. Nothing in that name tells the next developer it needs a matching background. The post shows how easy the direction is to lose. In the &lt;code&gt;--text-reverse&lt;/code&gt; step, the same &lt;code&gt;color: var(--text-reverse)&lt;/code&gt; declaration is commented "Light then dark" on one rule and "Dark then light" on the other. Read literally, the first snippet also puts &lt;code&gt;#eaeaea&lt;/code&gt;, the value labelled Light, in the Light Mode slot of &lt;code&gt;--text&lt;/code&gt;. If the author can mix that up while writing the post, so can whoever inherits the stylesheet. I'd keep role names like &lt;code&gt;--text&lt;/code&gt; and &lt;code&gt;--surface&lt;/code&gt;, define them in pairs, and check each pair in both schemes.&lt;/p&gt;

&lt;p&gt;Graham also suggests that a fallback argument inside &lt;code&gt;light-dark()&lt;/code&gt; would be nice. He calls it spitballing, and it isn't syntax you can ship.&lt;/p&gt;

&lt;h2&gt;
  
  
  The byte count settles nothing
&lt;/h2&gt;

&lt;p&gt;Both authors measured. Underhill's generated CSS shrank by 0.923 kB, but compressed transfer grew slightly, by 149 bytes with Gzip and 132 with Brotli. Graham's CSS-Tricks comparison went the other way: a &lt;code&gt;prefers-color-scheme&lt;/code&gt; version would have been 12,262 bytes (7.2%) larger minified and 337 bytes (1.4%) larger with Brotli. Neither result changes anything for a reader. The case for &lt;code&gt;light-dark()&lt;/code&gt; rests on maintainability, and maintainability includes the fallbacks and the token names.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verdict
&lt;/h2&gt;

&lt;p&gt;Underhill thinks &lt;code&gt;light-dark()&lt;/code&gt; is worthwhile for him, with sensible fallbacks where they matter. I agree, as long as you decide on purpose what a browser without support shows. Before your next merge:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Put a plain colour declaration before any &lt;code&gt;light-dark()&lt;/code&gt; whose fallback matters to readers.&lt;/li&gt;
&lt;li&gt;If your fallback text isn't the browser default, wrap &lt;code&gt;color-scheme&lt;/code&gt; in the &lt;code&gt;@supports&lt;/code&gt; check.&lt;/li&gt;
&lt;li&gt;Test with &lt;code&gt;light-dark()&lt;/code&gt; unsupported in both Light Mode and Dark Mode.&lt;/li&gt;
&lt;li&gt;Name tokens by role and check text and surface as a pair.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>css</category>
      <category>lightdark</category>
      <category>darkmode</category>
      <category>customproperties</category>
    </item>
    <item>
      <title>Style queries let the parent set the variant, not the class</title>
      <dc:creator>Leo</dc:creator>
      <pubDate>Wed, 25 Nov 2026 16:07:49 +0000</pubDate>
      <link>https://dev.to/leobaniak/style-queries-let-the-parent-set-the-variant-not-the-class-40id</link>
      <guid>https://dev.to/leobaniak/style-queries-let-the-parent-set-the-variant-not-the-class-40id</guid>
      <description>&lt;p&gt;You have a sidebar full of cards, and every one of them carries &lt;code&gt;card--compact&lt;/code&gt;. The template loop adds the class, so nobody types it by hand. Fine. Then design looks at the page and says the compact cards further down shouldn't be compact, because the tight padding there isn't separating anything. It just looks inconsistent.&lt;/p&gt;

&lt;p&gt;The class sits on the card. The reason for the class comes from where the card is on the page. Wrong place.&lt;/p&gt;

&lt;p&gt;Kevin Powell's new CSS-Tricks article fixes this with container style queries, which the article says are now Baseline Newly Available. The move: stop putting the variant on the component. Put a setting on an ancestor, and let the component decide what to do with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Same at-rule, different question
&lt;/h2&gt;

&lt;p&gt;A size query asks how wide the container is. A style query uses the same &lt;code&gt;@container&lt;/code&gt; at-rule and asks what a custom property is set to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@container&lt;/span&gt; &lt;span class="nf"&gt;style&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--theme&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;high-contrast&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.card&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;white&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;border-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read it as: if the nearest container has &lt;code&gt;--theme: high-contrast&lt;/code&gt;, style &lt;code&gt;.card&lt;/code&gt; like this.&lt;/p&gt;

&lt;p&gt;No setup required. Every element is a style container by default, so there's no &lt;code&gt;container-type&lt;/code&gt; to declare. With size queries, a missing &lt;code&gt;container-type&lt;/code&gt; is the usual reason nothing happens. Here that failure mode is gone.&lt;/p&gt;

&lt;p&gt;Custom properties only, for now. The spec also covers regular properties, like &lt;code&gt;style(display: flex)&lt;/code&gt;, but the article says that isn't supported anywhere yet.&lt;/p&gt;

&lt;p&gt;The rule that catches people is that an element can't query itself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.card&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;--card-layout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;alternative&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@container&lt;/span&gt; &lt;span class="nf"&gt;style&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--card-layout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;alternative&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.card&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1fr&lt;/span&gt; &lt;span class="mi"&gt;2fr&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="cm"&gt;/* doesn't work */&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same as size queries. The query looks at an ancestor, so the property has to be set somewhere above &lt;code&gt;.card&lt;/code&gt;. Powell notes that &lt;code&gt;if()&lt;/code&gt; is on the way and can read custom properties on the element it's used on. The trade-off is that &lt;code&gt;if()&lt;/code&gt; covers a single property, while a style query block holds as many declarations as you need.&lt;/p&gt;

&lt;h2&gt;
  
  
  From modifier to setting
&lt;/h2&gt;

&lt;p&gt;Here's a density modifier the familiar way, as an attribute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nt"&gt;data-card-density&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"compact"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;5rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;5rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the style query version from the article:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nt"&gt;data-card-layout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"alternative"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;--card-layout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;alternative&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.card&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;@container&lt;/span&gt; &lt;span class="nf"&gt;style&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--card-layout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;alternative&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;5rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;5rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;More code. Yes. Powell admits that if you think in modifiers, it looks like extra work for nothing. The payoff is upstream. The alternative styles are written once, inside &lt;code&gt;.card&lt;/code&gt;, and anything that can set &lt;code&gt;--card-layout&lt;/code&gt; can switch them on: a media query, a container query, a &lt;code&gt;:has()&lt;/code&gt; selector, a parent section. A CMS option that writes one custom property onto a section of the page works too.&lt;/p&gt;

&lt;p&gt;That's the sidebar fix. In the article's version, a &lt;code&gt;@media (width &amp;gt; 700px)&lt;/code&gt; block sets up the two-column layout and gives &lt;code&gt;.sidebar&lt;/code&gt; its compact density through a custom property. The card markup doesn't change. The decision moves to the part of the page that actually has the context.&lt;/p&gt;

&lt;h2&gt;
  
  
  The overflow grid that should scroll down
&lt;/h2&gt;

&lt;p&gt;The better demo is the overflow grid. Powell's base pattern:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.overflow-grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;grid-auto-flow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;column&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;grid-auto-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;25ch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;padding-block-end&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;overflow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It scrolls sideways. Drop it into a hero that splits into two columns on larger screens and sideways scrolling in that narrow column gets awkward. He wants it to scroll vertically there instead.&lt;/p&gt;

&lt;p&gt;First, make the flow direction a setting with a default of &lt;code&gt;column&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.overflow-grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;grid-auto-flow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--overflow-grid-direction&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;column&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then the split flips the setting when it goes to two columns:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.split&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;@container&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;40rem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;--overflow-grid-direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nl"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1fr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On its own, that looks bad. The grid is still sized for horizontal scrolling, so you get a tall column and no overflow at all. Flipping &lt;code&gt;grid-auto-flow&lt;/code&gt; changed the direction. None of the sizing came along.&lt;/p&gt;

&lt;p&gt;So the grid listens for its own setting:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.overflow-grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;@container&lt;/span&gt; &lt;span class="nf"&gt;style&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--overflow-grid-direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1fr&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="cm"&gt;/* a single, full-width column */&lt;/span&gt;
    &lt;span class="nl"&gt;max-block-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;50vb&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="cm"&gt;/* keep the overflow, but vertically */&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look at who knows what. &lt;code&gt;.split&lt;/code&gt; never selects &lt;code&gt;.overflow-grid&lt;/code&gt;. It sets one custom property. The grid owns every rule about how it looks in each direction. Custom properties inherit, so the same value feeds the &lt;code&gt;var()&lt;/code&gt; in &lt;code&gt;grid-auto-flow&lt;/code&gt; and the style query, and because it's set on &lt;code&gt;.split&lt;/code&gt;, an ancestor, the self-query rule never gets in the way.&lt;/p&gt;

&lt;p&gt;Styling a child from its layout works. Powell calls it awkward and says it leads to fragile code bases. I agree, and this example makes the case better than any argument about selector coupling I've read.&lt;/p&gt;

&lt;h2&gt;
  
  
  Modifier classes stay
&lt;/h2&gt;

&lt;p&gt;Powell is clear that this doesn't retire modifier classes or data attributes. If a button just needs to be the accent version or a pill, a modifier is the right tool. It also styles the element it sits on, which a style query can't. And sometimes a plain media query, a container query or an intrinsic layout does the job without either.&lt;/p&gt;

&lt;p&gt;His test for when style queries pay off: the condition and the styles live in different places, or one condition has to change several things at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it on your next layout
&lt;/h2&gt;

&lt;p&gt;Find a component you style from its parent. A selector like &lt;code&gt;.split .overflow-grid&lt;/code&gt; gives it away. Turn whatever the parent is changing into a custom property with a default. Move the rules into a &lt;code&gt;@container style()&lt;/code&gt; block inside the component. Have the parent set the property. Keep it on an ancestor.&lt;/p&gt;

&lt;p&gt;The missing piece is querying real properties. &lt;code&gt;style(display: flex)&lt;/code&gt; is in the spec, and no browser supports it yet. Until then, custom properties are the switch.&lt;/p&gt;

</description>
      <category>css</category>
      <category>containerqueries</category>
      <category>stylequeries</category>
      <category>customproperties</category>
    </item>
    <item>
      <title>CSS random() remembers its roll, and the cache key decides when</title>
      <dc:creator>Leo</dc:creator>
      <pubDate>Sat, 21 Nov 2026 16:07:30 +0000</pubDate>
      <link>https://dev.to/leobaniak/css-random-remembers-its-roll-and-the-cache-key-decides-when-197h</link>
      <guid>https://dev.to/leobaniak/css-random-remembers-its-roll-and-the-cache-key-decides-when-197h</guid>
      <description>&lt;p&gt;You tilt every sidenote by a random couple of degrees. Then a media query bumps the scale at wider viewports, you repeat the &lt;code&gt;rotate()&lt;/code&gt; so it doesn't get wiped, and you brace for every note to jump to a new angle when the window crosses the breakpoint. It doesn't jump. Same tilt on both sides.&lt;/p&gt;

&lt;p&gt;Mat Marquis explains why in a Piccalilli article published 18 November. His demo is a column of sidenotes, each scaled and rotated with &lt;code&gt;random()&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.sidenote&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;scale&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.925&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;rotate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;random&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;-2&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;5deg&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;2.5deg&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;min-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;55rem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.sidenote&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;scale&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;rotate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;random&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;-2&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;5deg&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;2.5deg&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The function takes a lower bound, an upper bound and an optional step. His example: &lt;code&gt;random(0px, 10px, 5px)&lt;/code&gt; resolves to 0, 5 or 10.&lt;/p&gt;

&lt;h2&gt;
  
  
  Seeds, keys and the index trap
&lt;/h2&gt;

&lt;p&gt;Each call generates a seed between 0 and 1 and computes its value from that. Two calculations built on the same seed always give the same result. Whether two calls share a seed comes down to the cache key, and Marquis says the default key is scoped to the element, the property name, and the index of the call within that property's value. Same &lt;code&gt;.sidenote&lt;/code&gt;, same &lt;code&gt;transform&lt;/code&gt;, first &lt;code&gt;random()&lt;/code&gt; in the value. Same key, so the same angle. That's why the rotation holds across the breakpoint, and why it also holds when he repeats it inside &lt;code&gt;@keyframes&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The index is the part that bites. Marquis's margin example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;margin-block&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;random&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1rem&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5rem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;min-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;55rem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;margin-block&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;random&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1rem&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5rem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;random&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1rem&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5rem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At the wider size, &lt;code&gt;margin-block-start&lt;/code&gt; keeps its value because it is still the first call. The second call has a new index, so &lt;code&gt;margin-block-end&lt;/code&gt; gets a fresh roll. Add &lt;code&gt;property-scoped&lt;/code&gt; and the index drops out of the key, so both values reuse one result: &lt;code&gt;random(property-scoped, 1rem, 5rem)&lt;/code&gt;. He also covers &lt;code&gt;element-scoped&lt;/code&gt;, named dashed identifiers like &lt;code&gt;--random-key&lt;/code&gt;, and &lt;code&gt;fixed&lt;/code&gt;, which pins the seed so you can preview outcomes. &lt;code&gt;random(fixed 0.5, 0deg, 20deg)&lt;/code&gt; gives &lt;code&gt;10deg&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;One gotcha to remember. Put &lt;code&gt;random(0px, 10px)&lt;/code&gt; in a custom property, read it with &lt;code&gt;var()&lt;/code&gt; in two rules, and the rules don't share a value. Marquis's point is that the custom property holds the call, not its result, so every use rolls again. If you want sharing, use the scoping keywords.&lt;/p&gt;

&lt;p&gt;On support, Marquis calls &lt;code&gt;random()&lt;/code&gt; brand new and links to caniuse for the current picture. Prototype the sidenotes now. Learn the key before you need it.&lt;/p&gt;

</description>
      <category>css</category>
      <category>random</category>
      <category>cssfunctions</category>
      <category>animation</category>
    </item>
    <item>
      <title>Argo CD self-heal can roll out a release without its migration hook when a sync window closes</title>
      <dc:creator>Leo</dc:creator>
      <pubDate>Sat, 21 Nov 2026 10:24:21 +0000</pubDate>
      <link>https://dev.to/leobaniak/argo-cd-self-heal-can-roll-out-a-release-without-its-migration-hook-when-a-sync-window-closes-2i90</link>
      <guid>https://dev.to/leobaniak/argo-cd-self-heal-can-roll-out-a-release-without-its-migration-hook-when-a-sync-window-closes-2i90</guid>
      <description>&lt;p&gt;If your Argo CD apps run database migrations as Sync hooks, with self-heal and deny sync windows switched on, a release can reach the cluster without its migration and still show green. Afzal Ansari, a CNCF Ambassador, traced the failure in a post on the CNCF blog and reproduced it on demand in a lab. His fix is to stop depending on the hook.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five regions, two skipped migrations
&lt;/h2&gt;

&lt;p&gt;A customer pushed a release while a deny window was active. When the window opened, five regional Applications rolled out the same commit. Three ran the database migration. Two did not, and for 36 to 44 minutes the new code talked to a schema it did not understand.&lt;/p&gt;

&lt;p&gt;The UI gave no warning. Both broken Applications were Synced and Healthy on the new commit, and their last operation read "successfully synced (all tasks run)". The only trace sat in the controller log. The two bad operations listed thirteen specific resources and carried a self-heal attempt count of one. Argo CD had healed drift instead of deploying a release, and a drift heal does not run hooks.&lt;/p&gt;

&lt;p&gt;Ansari then rebuilt the setup in a lab and pushed a release during a four-minute window and refreshed the app fifteen seconds before it closed. The app synced in one second. The migration Job still carried the previous release label. He got the same result in five of six attempts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two refresh paths, one wrong assumption
&lt;/h2&gt;

&lt;p&gt;Argo CD refreshes an Application for two reasons. A level-2 refresh comes from the reconciliation timer, roughly every two to three minutes, and compares the app against Git. A level-1 refresh is triggered by a change to a managed object and reuses what the controller already knows. After a window closes, whichever kind arrives first decides what happens.&lt;/p&gt;

&lt;p&gt;While the window is shut, timer refreshes record the new commit in &lt;code&gt;status.sync.revision&lt;/code&gt;, but the last real sync stays on the old commit. A level-1 refresh then compares that recorded revision against itself, finds no changes, and decides the revision was already synced. With self-heal on, it syncs only the out-of-sync resources. That partial sync skips hooks and writes no history. A timer refresh compares against &lt;code&gt;targetRevision&lt;/code&gt; instead, sees that the last sync is older, and runs a full sync with hooks.&lt;/p&gt;

&lt;p&gt;In Ansari's words: "On the level-1 path, the last compared revision is mistaken for the last synced one."&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the obvious tweaks don't help
&lt;/h2&gt;

&lt;p&gt;The quick fixes stay inside the hook model: a PreSync hook, the newer &lt;code&gt;RunHooksOnPartialSync&lt;/code&gt; option, or a shorter window. Going by his reading of the Argo CD source, none of them changes the outcome. A partial sync skips every hook type. The new option is ignored for automated syncs, and self-heal is automated. He says plainly that he did not test these three.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put the migration in Git
&lt;/h2&gt;

&lt;p&gt;The recommended fix makes the migration part of the desired state: remove the hook annotations, give the Job a sync wave that runs before the app, and change its name every release:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;batch/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Job&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;db-migration-&amp;lt;release&amp;gt;&lt;/span&gt;   &lt;span class="c1"&gt;# must change every release
&lt;/span&gt;  &lt;span class="na"&gt;annotations&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;argocd.argoproj.io/sync-wave&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"-1"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each release now brings a Job that does not exist yet, so any sync, partial or full, sees it as missing and applies it, and Argo CD waits for that wave to be healthy before moving on. In the lab, this version went through the same broken self-heal path and the migration still finished before the new ConfigMap and Deployment were applied.&lt;/p&gt;

&lt;p&gt;The post lists the details to get right:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use a unique name per release, such as the image tag in a Helm template, because a Job's pod template is immutable.&lt;/li&gt;
&lt;li&gt;Keep prune on so old Jobs get cleaned up.&lt;/li&gt;
&lt;li&gt;Do not set &lt;code&gt;ttlSecondsAfterFinished&lt;/code&gt;. Kubernetes deletes the Job, self-heal sees a missing resource, and the migration runs again.&lt;/li&gt;
&lt;li&gt;Keep migrations idempotent anyway.&lt;/li&gt;
&lt;li&gt;Run a deliberately failing migration in staging before relying on this.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The author did not test the failing case. That is where your rollback path lives, so test it yourself before the next release.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you can't change the charts yet
&lt;/h2&gt;

&lt;p&gt;The blunter option is to turn off self-heal on the apps that run migrations:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;syncPolicy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;automated&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;prune&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="na"&gt;selfHeal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ansari ran two apps through the same window, and both made the same faulty "no changes" decision. The app with self-heal on shipped the release without its migration. The other logged "Skipping auto-sync: most recent sync already to […]" and waited. About two minutes later its timer refresh ran a full sync with the hook, and the migration finished. That app stayed on the old release while it waited, so code and schema never mismatched.&lt;/p&gt;

&lt;p&gt;The cost is drift correction. A resource someone edits by hand now stays OutOfSync until the next commit.&lt;/p&gt;

&lt;p&gt;The post does not point to an upstream fix. Until one exists, a Synced and Healthy status after a window close tells you that an operation succeeded. It does not tell you which kind of operation it was.&lt;/p&gt;

</description>
      <category>argocd</category>
      <category>gitops</category>
      <category>databasemigrations</category>
      <category>syncwindows</category>
    </item>
    <item>
      <title>Spatial CSS preview puts 3D models on transform and anchor positioning</title>
      <dc:creator>Leo</dc:creator>
      <pubDate>Fri, 20 Nov 2026 16:07:36 +0000</pubDate>
      <link>https://dev.to/leobaniak/spatial-css-preview-puts-3d-models-on-transform-and-anchor-positioning-42oh</link>
      <guid>https://dev.to/leobaniak/spatial-css-preview-puts-3d-models-on-transform-and-anchor-positioning-42oh</guid>
      <description>&lt;p&gt;Put three 3D models on a page and you get three separate worlds. Each &lt;code&gt;&amp;lt;model&amp;gt;&lt;/code&gt; has its own space and its own lighting. If you want one block to sit on a board, you work out the numbers yourself or you write JavaScript to do it.&lt;/p&gt;

&lt;p&gt;In a post on the WebKit blog dated November 16, Brandel Zachernuk proposes giving that job to CSS. Safari on visionOS 27.3 includes a limited feature preview of the proposed spatial CSS API, starting with the &lt;code&gt;&amp;lt;model&amp;gt;&lt;/code&gt; element. The post says spatial CSS "is made of a lot of small tweaks to existing syntax." That's what makes it interesting to me. The new parts look a lot like CSS you already write.&lt;/p&gt;

&lt;p&gt;To try it on Vision Pro or in the visionOS Simulator, turn on Settings &amp;gt; Apps &amp;gt; Safari &amp;gt; Advanced &amp;gt; Feature flags &amp;gt; CSS Portals.&lt;/p&gt;

&lt;h2&gt;
  
  
  One container, one shared space
&lt;/h2&gt;

&lt;p&gt;Everything starts with &lt;code&gt;spatial: portal&lt;/code&gt;. Per WebKit, any element that can contain other elements, such as a &lt;code&gt;&amp;lt;figure&amp;gt;&lt;/code&gt; or a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;, can act as a portal, and all of its children share one space. The preview focuses on models, but the post says the specification is written so the approach should work for all content.&lt;/p&gt;

&lt;p&gt;Once models share a portal, &lt;code&gt;transform&lt;/code&gt; moves, rotates and scales them. The post says it's the same &lt;code&gt;DOMMatrix&lt;/code&gt; class that produces 2D and pseudo-3D transforms elsewhere, but inside a portal it becomes a true 3D transform. This is WebKit's starter scene, with a board and two blocks moved off to the sides:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"world"&lt;/span&gt; &lt;span class="na"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"spatial:portal;"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;model&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"board"&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"board.usdz"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/model&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;model&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"octagon"&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"octagon.usdz"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/model&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;model&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"star"&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"star.usdz"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/model&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
  &lt;span class="nn"&gt;#octagon&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;translateX&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;-50cm&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nn"&gt;#star&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;translateX&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;50cm&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each model moves on its own. A model's animation timeline can only play through one sequence, and WebKit says independent transforms give you the extra freedom you need for interaction or configuration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Anchor positioning gets a third axis
&lt;/h2&gt;

&lt;p&gt;This is the part I like most. &lt;code&gt;&amp;lt;model&amp;gt;&lt;/code&gt; is a void element, so you can't nest one model inside another to attach it. WebKit borrows from anchor positioning instead. You name an anchor on one model, point another model at it, and add &lt;code&gt;position-context: anchor&lt;/code&gt; so the alignment applies.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
  &lt;span class="nn"&gt;#board&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;anchor-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;--board&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nn"&gt;#octagon&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;position-anchor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;--board&lt;/span&gt;&lt;span class="nn"&gt;#octagon-position&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;position-context&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;anchor&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;#octagon-position&lt;/code&gt; part is the clever bit. In WebKit's example, the board file includes two reference positions, one per slot. 3D editors call these "null objects" or "empties". The CSS points straight at a marker inside the model. You don't copy coordinates out of the 3D editor or guess at a transform. Per the post, these anchor points can be animated as well.&lt;/p&gt;

&lt;p&gt;If you've placed a tooltip with &lt;code&gt;anchor-name&lt;/code&gt; and &lt;code&gt;position-anchor&lt;/code&gt;, you already know how this works. It's the same idea with one more axis.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lighting becomes an at-rule
&lt;/h2&gt;

&lt;p&gt;An environment map is the lighting that reflects off an object. It started out as an HTML attribute on &lt;code&gt;&amp;lt;model&amp;gt;&lt;/code&gt;. Now that more elements can share one, WebKit has moved it into an at-rule modelled on &lt;code&gt;@keyframes&lt;/code&gt;. You define it once and refer to it by name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@environment-map&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"spooky"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;equirectangular&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;src&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"night.hdr"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.world.spooky&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;environment-map&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"spooky"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The preview supports 360-degree HDR images. Because the lighting is attached with a class, changing it is a matter of changing the class, and the cascade does the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Orbiting, and leaving the window
&lt;/h2&gt;

&lt;p&gt;The preview has two more pieces. &lt;code&gt;portal-action: orbit&lt;/code&gt; lets users rotate the scene in place. It mirrors the &lt;code&gt;stagemode&lt;/code&gt; attribute on &lt;code&gt;&amp;lt;model&amp;gt;&lt;/code&gt;, and WebKit says it's more flexible as CSS. The post mentions &lt;code&gt;pan-x&lt;/code&gt; and &lt;code&gt;pan-y&lt;/code&gt; as modes that could be useful later.&lt;/p&gt;

&lt;p&gt;The only JavaScript API is &lt;code&gt;requestVolumetricScene()&lt;/code&gt;. When a user action calls it, the content leaves its portal and appears in the user's space as what WebKit calls a Connected Volumetric Scene. The page stays connected to the scene, so you can still add, remove or move objects.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;launchSpaceButton&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"click"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;world&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;".world"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;world&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;requestVolumetricScene&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why CSS and not a script
&lt;/h2&gt;

&lt;p&gt;WebKit's reasoning holds up. When spatial settings live in declarative CSS, media queries for aspect ratio, color theme and reduced motion can adjust the scene too. That means less JavaScript and no complicated state to keep track of. The numbers can be animated and transitioned like any other value. The post also says spatial web standards shouldn't be headset-only, since 3D content now appears on phones, tablets and computers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it actually stands
&lt;/h2&gt;

&lt;p&gt;To be clear about status: this is a preview behind a flag, it runs only on visionOS, and the API is a proposal. The &lt;code&gt;&amp;lt;model&amp;gt;&lt;/code&gt; element is the part that has shipped. Per the post, it's in Safari 27 on all platforms. Spatial CSS has not shipped. The WebKit post covers only WebKit and says nothing about other engines, so there's no cross-browser story to tell yet.&lt;/p&gt;

&lt;p&gt;If you have the simulator, rebuild the board-and-blocks demo and see how &lt;code&gt;position-anchor&lt;/code&gt; behaves in three dimensions. WebKit is asking authors to try the preview and report issues at bugs.webkit.org. Early feedback from people building real pages is how a proposal like this gets better before it settles.&lt;/p&gt;

</description>
      <category>css</category>
      <category>spatialcss</category>
      <category>modelelement</category>
      <category>anchorpositioning</category>
    </item>
    <item>
      <title>Safari Technology Preview 257 puts the native multi-select in a dropdown</title>
      <dc:creator>Leo</dc:creator>
      <pubDate>Thu, 19 Nov 2026 16:07:47 +0000</pubDate>
      <link>https://dev.to/leobaniak/safari-technology-preview-257-puts-the-native-multi-select-in-a-dropdown-2cpf</link>
      <guid>https://dev.to/leobaniak/safari-technology-preview-257-puts-the-native-multi-select-in-a-dropdown-2cpf</guid>
      <description>&lt;p&gt;Somewhere in your codebase there is probably a tag picker. It is a &lt;code&gt;div&lt;/code&gt; that opens a panel of checkboxes, with a row of removable chips on top and a few hundred lines of script holding it together. Someone wrote it because the native &lt;code&gt;&amp;lt;select multiple&amp;gt;&lt;/code&gt; takes up too much room and can't be styled. Keyboard users and screen-reader users get to find out how well that script handles arrow keys, selection state and announcements, and in my experience it usually handles them badly.&lt;/p&gt;

&lt;p&gt;Safari Technology Preview 257 is one more step toward never writing that widget again. The build came out on November 18 for macOS Golden Gate and macOS Tahoe and covers WebKit changes 324654@main through &lt;a href="mailto:326096@main"&gt;326096@main&lt;/a&gt;. Two lines in its Forms section are about the multi-select.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two new features
&lt;/h2&gt;

&lt;p&gt;The first is plain HTML with nothing to opt into. WebKit added support for rendering &lt;code&gt;&amp;lt;select multiple size="1"&amp;gt;&lt;/code&gt; as a dropdown box on macOS. Leave &lt;code&gt;size&lt;/code&gt; off and a multi-select shows up as the familiar scrolling list box, eating vertical space. Ask for one visible row on macOS and this build now gives you a collapsed control that opens when activated.&lt;/p&gt;

&lt;p&gt;The second is a preview, and it is off by default. WebKit added preview support for the enhanced &lt;code&gt;&amp;lt;select&amp;gt;&lt;/code&gt; element with the &lt;code&gt;multiple&lt;/code&gt; attribute and list box rendering. The same change clones every selected option into &lt;code&gt;selectedcontent&lt;/code&gt; elements, so a multi-select can show all of its current choices in the closed control, not just one.&lt;/p&gt;

&lt;p&gt;That second line matters more than it looks. The usual excuse for a scripted multi-select is the closed state: designers want the chosen values visible as a summary, and the native control couldn't do it. If &lt;code&gt;selectedcontent&lt;/code&gt; can hold every selected option, that excuse gets a lot weaker.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trying the native version first
&lt;/h2&gt;

&lt;p&gt;You can test the first feature today with markup you may already have:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"toppings"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Toppings&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;select&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"toppings"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"toppings"&lt;/span&gt; &lt;span class="na"&gt;multiple&lt;/span&gt; &lt;span class="na"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"1"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;option&amp;gt;&lt;/span&gt;Basil&lt;span class="nt"&gt;&amp;lt;/option&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;option&amp;gt;&lt;/span&gt;Olives&lt;span class="nt"&gt;&amp;lt;/option&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;option&amp;gt;&lt;/span&gt;Mushrooms&lt;span class="nt"&gt;&amp;lt;/option&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/select&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep the &lt;code&gt;&amp;lt;label&amp;gt;&lt;/code&gt;. A collapsed control still needs an accessible name. Keep real text in every &lt;code&gt;&amp;lt;option&amp;gt;&lt;/code&gt; too, because the option text is what assistive tech has to work with when the list is closed. The enhanced version is off by default, so you have to turn it on yourself. The release notes don't name the setting, so I won't guess at it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fixes that touch form state and focus
&lt;/h2&gt;

&lt;p&gt;The Forms section also lists repairs to controls you ship today:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;code&gt;&amp;lt;select&amp;gt;&lt;/code&gt; whose form state was restored no longer keeps showing the previously selected option. A visible value that disagrees with the submitted value misleads everyone, and someone who can't easily re-check the control may never notice.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;selectedcontent&amp;gt;&lt;/code&gt; elements of a &lt;code&gt;&amp;lt;select&amp;gt;&lt;/code&gt; now all update when one of them is moved.&lt;/li&gt;
&lt;li&gt;Listbox &lt;code&gt;&amp;lt;select&amp;gt;&lt;/code&gt; elements now baseline-align like &lt;code&gt;vertical-align: text-bottom&lt;/code&gt;, which WebKit says is consistent with other browsers.&lt;/li&gt;
&lt;li&gt;Clicking an &lt;code&gt;&amp;lt;input type="file"&amp;gt;&lt;/code&gt; is now accepted with transient user activation, the same way &lt;code&gt;showPicker()&lt;/code&gt; is. Per the notes, this fixes file pickers that failed to open on some sites.&lt;/li&gt;
&lt;li&gt;A scrollable &lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt; no longer jumps on the first edit below the visible area.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Outside Forms, three fixes are relevant to accessibility. SVG &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;g&amp;gt;&lt;/code&gt; and nested &lt;code&gt;&amp;lt;svg&amp;gt;&lt;/code&gt; elements now render &lt;code&gt;outline&lt;/code&gt;, including the default &lt;code&gt;:focus&lt;/code&gt; ring. Before this, keyboard users focusing a link inside an inline SVG chart or map in this engine could get no visible indicator at all. Text set with &lt;code&gt;text-combine-upright&lt;/code&gt; now returns the combined text, instead of U+FFFC, to &lt;code&gt;innerText&lt;/code&gt;, copy, and accessibility. And &lt;code&gt;element.focus()&lt;/code&gt; now dispatches &lt;code&gt;focus&lt;/code&gt; as well as &lt;code&gt;focusin&lt;/code&gt; while the page isn't focused.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the notes don't tell you
&lt;/h2&gt;

&lt;p&gt;The release notes make no claim about how VoiceOver or any other assistive tech announces the dropdown multi-select, or the enhanced one. Don't assume it works well because it's native. Test it. Open it with the keyboard, select several options, close it, and listen to what the closed state says. Then check the submitted values.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where support stands
&lt;/h2&gt;

&lt;p&gt;Both features are listed for Safari Technology Preview 257 only, and the dropdown rendering is specific to macOS. The enhanced multi-select is a preview behind a setting that is off by default. The notes say nothing about other engines or a stable Safari release, so treat this as something to test now and not yet something to ship.&lt;/p&gt;

&lt;h2&gt;
  
  
  My verdict
&lt;/h2&gt;

&lt;p&gt;This is the right direction. Making the native control fit the design is better than shipping another fragile copy. Before your next forms PR:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Try &lt;code&gt;&amp;lt;select multiple size="1"&amp;gt;&lt;/code&gt; in Technology Preview before you reach for a scripted picker.&lt;/li&gt;
&lt;li&gt;Give every multi-select a &lt;code&gt;&amp;lt;label&amp;gt;&lt;/code&gt;, and give every &lt;code&gt;&amp;lt;option&amp;gt;&lt;/code&gt; real text.&lt;/li&gt;
&lt;li&gt;Test the closed state with a screen reader, not just the open list.&lt;/li&gt;
&lt;li&gt;If you put links inside inline SVG, check that their focus ring shows up in this build.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>safari</category>
      <category>webkit</category>
      <category>stp</category>
      <category>browserrelease</category>
    </item>
    <item>
      <title>GitHub CLI's gh event listen lets scripts wait on a pull request without polling</title>
      <dc:creator>Leo</dc:creator>
      <pubDate>Thu, 19 Nov 2026 10:23:25 +0000</pubDate>
      <link>https://dev.to/leobaniak/github-clis-gh-event-listen-lets-scripts-wait-on-a-pull-request-without-polling-3943</link>
      <guid>https://dev.to/leobaniak/github-clis-gh-event-listen-lets-scripts-wait-on-a-pull-request-without-polling-3943</guid>
      <description>&lt;p&gt;I have written the same shell loop more times than I'd like to admit. Call the API, check whether the PR has a review yet, &lt;code&gt;sleep 30&lt;/code&gt;, try again. Every version looks slightly different and every one is a little bit wrong: too chatty, too slow, or missing an exit condition, so it spins until the job timeout kills it. So when GitHub said its CLI can now wait for a pull request to change "with a single command instead of polling it in a loop", I read the changelog twice.&lt;/p&gt;

&lt;p&gt;Starting with &lt;code&gt;gh&lt;/code&gt; v2.105.0, GitHub CLI supports GitHub Event Streams through a new &lt;code&gt;gh event listen&lt;/code&gt; command. Before you rewrite anything, know that it is in preview and sits behind a waitlist.&lt;/p&gt;

&lt;h2&gt;
  
  
  What landed in v2.105.0
&lt;/h2&gt;

&lt;p&gt;You give &lt;code&gt;gh event listen&lt;/code&gt; a pull request URL and the events you care about. Per the GitHub Changelog, it creates a subscription, opens the stream and prints each event as a line of JSON.&lt;/p&gt;

&lt;p&gt;The events it covers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;submitted reviews&lt;/li&gt;
&lt;li&gt;pull request state and head changes&lt;/li&gt;
&lt;li&gt;merge conflicts&lt;/li&gt;
&lt;li&gt;completed check suites&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By default the command exits after the first event. Three flags change that. &lt;code&gt;--count&lt;/code&gt; waits for more than one event, &lt;code&gt;--follow&lt;/code&gt; keeps listening, and &lt;code&gt;--timeout&lt;/code&gt; stops waiting after a duration you set. You can trim the output with &lt;code&gt;--jq&lt;/code&gt; or &lt;code&gt;--template&lt;/code&gt;, the same filtering flags you already use elsewhere in &lt;code&gt;gh&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Subscriptions are also manageable directly, with &lt;code&gt;gh event subscription create&lt;/code&gt;, &lt;code&gt;list&lt;/code&gt;, &lt;code&gt;view&lt;/code&gt; and &lt;code&gt;delete&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the exit-on-first-event default is the good part
&lt;/h2&gt;

&lt;p&gt;The default looks small, but it's the reason I'm excited. A command that blocks and then exits is easy to compose. In a shell script or a CI step, "wait until something happens, then carry on" is the whole control flow, and you no longer have to pick a sleep interval.&lt;/p&gt;

&lt;p&gt;Think about what you do today while a PR waits on review. Either something polls, burning API calls and adding up to one full interval of lag before it notices, or a human keeps refreshing the tab. Neither is how anyone wants to spend an afternoon.&lt;/p&gt;

&lt;p&gt;GitHub is also aiming this at agents. According to the changelog, &lt;code&gt;gh pr create&lt;/code&gt;, &lt;code&gt;gh pr view&lt;/code&gt;, &lt;code&gt;gh run view&lt;/code&gt;, &lt;code&gt;gh run watch&lt;/code&gt; and &lt;code&gt;gh api&lt;/code&gt; now suggest &lt;code&gt;gh event listen&lt;/code&gt; instead of polling, so a coding agent driving the CLI should find the command without you writing it into a prompt. If you've watched an agent poll a PR for an hour, you'll feel this one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trying it in a script
&lt;/h2&gt;

&lt;p&gt;The changelog doesn't print an example invocation, so I won't guess at the exact event names. &lt;code&gt;gh event --help&lt;/code&gt; lists them. The shape of a CI step is roughly this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Block until the PR changes, give up after a bounded wait,&lt;/span&gt;
&lt;span class="c"&gt;# and keep only the fields the next step needs.&lt;/span&gt;
gh event listen &lt;span class="s2"&gt;"$PR_URL"&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;events...&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; \
  --timeout &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;duration&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; \
  --jq &lt;span class="s1"&gt;'&amp;lt;filter&amp;gt;'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Swap the placeholders for the event names and duration format from &lt;code&gt;gh event --help&lt;/code&gt;. For a bot that reacts to every review on a long-lived PR, &lt;code&gt;--follow&lt;/code&gt; is the mode you want. For a step that should wait for exactly two things, use &lt;code&gt;--count&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rough edges to check before you delete your loops
&lt;/h2&gt;

&lt;p&gt;Preview means preview. GitHub says the &lt;code&gt;gh event&lt;/code&gt; commands may change, and access requires Event Streams, which is itself in preview on GitHub.com. You have to join the waitlist before any of this works for you. Keep your polling fallback in place until your account has access and the flags stop moving.&lt;/p&gt;

&lt;p&gt;Always set &lt;code&gt;--timeout&lt;/code&gt; in CI. A blocking wait without a bound turns a quiet PR into a runner that sits idle until the job-level timeout ends it, and nobody enjoys debugging a step that just never returned.&lt;/p&gt;

&lt;p&gt;Be deliberate about which events you pass. With the default, the first matching event ends the command. If you subscribe to reviews and check suites together and a review comes in first, your script moves on before CI has finished.&lt;/p&gt;

&lt;p&gt;Watch your subscriptions too. &lt;code&gt;gh event listen&lt;/code&gt; creates one, and the changelog doesn't say what happens to it once the command exits. Run &lt;code&gt;gh event subscription list&lt;/code&gt; after a few test runs so you know whether stale ones are piling up.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we've been waiting until now
&lt;/h2&gt;

&lt;p&gt;Most of us already have one of three setups. There's the hand-rolled &lt;code&gt;gh api&lt;/code&gt; loop with a sleep, which needs nothing extra and is wasteful in exactly the ways described above. &lt;code&gt;gh pr checks --watch&lt;/code&gt; and &lt;code&gt;gh run watch&lt;/code&gt; cover the specific case of waiting on CI, but not a review or a merge conflict. Then there are webhooks, the classic push model. They are efficient, but you need a reachable endpoint to receive them, which is awkward from a laptop, a short-lived CI job or a sandboxed agent.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;gh event listen&lt;/code&gt; sits between those. You get push delivery, and the client opens the connection, so there's nothing to host.&lt;/p&gt;

&lt;p&gt;My verdict is to try it once you're off the waitlist, but give it time before betting a merge queue on it. What I'm watching next is whether Event Streams grows beyond pull requests. A single blocking wait on a workflow run, a release or a deployment would let me delete a lot more sleep loops.&lt;/p&gt;

</description>
      <category>githubcli</category>
      <category>pullrequests</category>
      <category>automation</category>
      <category>aiagents</category>
    </item>
  </channel>
</rss>
