<?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: Yann</title>
    <description>The latest articles on DEV Community by Yann (@yannb).</description>
    <link>https://dev.to/yannb</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%2F4075019%2Fe639c834-2f14-4efe-8d1f-42791cb2a136.jpg</url>
      <title>DEV Community: Yann</title>
      <link>https://dev.to/yannb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yannb"/>
    <language>en</language>
    <item>
      <title>How to keep up with browser support of new HTML/CSS features?</title>
      <dc:creator>Yann</dc:creator>
      <pubDate>Wed, 12 Aug 2026 16:06:36 +0000</pubDate>
      <link>https://dev.to/yannb/how-to-keep-up-with-browser-support-of-new-htmlcss-features-1ck9</link>
      <guid>https://dev.to/yannb/how-to-keep-up-with-browser-support-of-new-htmlcss-features-1ck9</guid>
      <description>&lt;p&gt;For an easy and thorough intro to Baseline, check out this &lt;a href="https://www.youtube.com/watch?v=uOtxiH3QiPg" rel="noopener noreferrer"&gt;talk by Rachel Andrew&lt;/a&gt;, but if you want the short version… Combining those 4 resources, you can get a definitive verdict on whether a browser feature is ready to go your client's site:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://webstatus.dev/" rel="noopener noreferrer"&gt;webstatus.dev&lt;/a&gt;: for Baseline status and dates, per-browser versions and ship dates, test summary scores, Chrome usage, and developer signals. The spine of every issue.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://wpt.fyi/" rel="noopener noreferrer"&gt;wpt.fyi&lt;/a&gt;: for the test data underneath those scores, and for when each browser was actually tested.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://caniuse.com/" rel="noopener noreferrer"&gt;caniuse&lt;/a&gt;: when a verdict is close, because Baseline says “safe in the core browser set” and caniuse says “safe for 97.3% of real traffic.” That gap is exactly where a catastrophic-failure Hold lives.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/mdn/browser-compat-data" rel="noopener noreferrer"&gt;MDN browser compat data&lt;/a&gt;: for the partial-implementation flags and per-subfeature notes that Baseline flattens away.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/web-platform-tests/interop" rel="noopener noreferrer"&gt;Interop&lt;/a&gt;: for whether a gap is being actively worked on.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Combining all those, here's what you get…&lt;/p&gt;

&lt;h1&gt;
  
  
  Browser support for June 2026
&lt;/h1&gt;

&lt;h2&gt;
  
  
  1. Nesting
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Verdict: Cleared&lt;/strong&gt; · Safe everywhere as of June 11, 2026&lt;/p&gt;

&lt;p&gt;CSS rules can nest inside other rules, natively.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Delete:&lt;/strong&gt; the build step that exists only to expand nesting. The source stays as written.&lt;/p&gt;

&lt;p&gt;One seam. A nested rule resolves the way &lt;code&gt;:is()&lt;/code&gt; does: &lt;code&gt;&amp;amp;&lt;/code&gt; takes the specificity of the most specific selector in the parent list. A preprocessor expands the same source into a plain selector list, where each branch keeps its own.&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="nf"&gt;#a&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;b&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="err"&gt;&amp;amp;&lt;/span&gt; &lt;span class="err"&gt;c&lt;/span&gt; &lt;span class="err"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="c"&gt;/* &amp;amp; is [1,0,0] for both, so [1,0,1] */&lt;/span&gt;
&lt;span class="err"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;/* Your build step expanded that to: */&lt;/span&gt;
&lt;span class="nf"&gt;#a&lt;/span&gt; &lt;span class="nt"&gt;c&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="c"&gt;/* [1,0,1], same */&lt;/span&gt;
&lt;span class="nt"&gt;b&lt;/span&gt; &lt;span class="nt"&gt;c&lt;/span&gt;  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="c"&gt;/* [0,0,2], weaker than the native version */&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The two agree until a parent selector list mixes specificity levels. Before switching, search your source for comma-separated parent selectors containing an ID.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Lazy-loading images and iframes
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Verdict: Cleared&lt;/strong&gt; · Safe everywhere as of June 19, 2026&lt;/p&gt;

&lt;p&gt;&lt;code&gt;loading="lazy"&lt;/code&gt; defers offscreen images and iframes until the user scrolls near them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Delete:&lt;/strong&gt; the lazy-loading script and its &lt;code&gt;data-src&lt;/code&gt; markup.&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="c"&gt;&amp;lt;!-- Before --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt; &lt;span class="na"&gt;data-src=&lt;/span&gt;&lt;span class="s"&gt;"chart.png"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"lazyload"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;&lt;span class="cm"&gt;/* a script you no longer need */&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;

&lt;span class="c"&gt;&amp;lt;!-- After --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"chart.png"&lt;/span&gt; &lt;span class="na"&gt;loading=&lt;/span&gt;&lt;span class="s"&gt;"lazy"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The core image and iframe cases pass their tests in every browser. What still fails anywhere is edge cases: an image whose URL is changed repeatedly from script, base-URL changes mid-load, lazy iframes during unusual navigations. Keep the image at the top of the page eager; deferring what is already on screen only delays it.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. &lt;code&gt;:has()&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Verdict: Cleared&lt;/strong&gt; · Safe everywhere as of June 19, 2026&lt;/p&gt;

&lt;p&gt;The parent selector: style an element by what it contains. It appears on about one in two hundred page loads.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Delete:&lt;/strong&gt; the JavaScript that watches children and toggles state classes on their parents.&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="c"&gt;/* Before: a script adds .has-error to the form */&lt;/span&gt;
&lt;span class="nt"&gt;form&lt;/span&gt;&lt;span class="nc"&gt;.has-error&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="no"&gt;firebrick&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;/* After */&lt;/span&gt;
&lt;span class="nt"&gt;form&lt;/span&gt;&lt;span class="nd"&gt;:has&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt;&lt;span class="nd"&gt;:invalid&lt;/span&gt;&lt;span class="o"&gt;)&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="no"&gt;firebrick&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;One boundary, from Safari's current test run. Parent, ancestor, adjacent and sibling positions all match Chrome exactly: 211 of 211, 337 of 337, 295 of 295, 295 of 295. The gap is re-matching while a script inserts and removes siblings: 14 of 28. If a &lt;code&gt;:has()&lt;/code&gt; rule watches a sibling list under live mutation, keep the class for that one case.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. &lt;code&gt;field-sizing&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Verdict: Cleared&lt;/strong&gt; · New this month, June 16, 2026&lt;/p&gt;

&lt;p&gt;&lt;code&gt;field-sizing: content&lt;/code&gt; makes inputs and textareas grow and shrink with what is typed. June's only new arrival, completed by Firefox 152.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Delete:&lt;/strong&gt; the textarea autosize script, on new work.&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;textarea&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="py"&gt;field-sizing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;min-height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;4rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;max-height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;16rem&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;Textarea sizing and resizing pass in every current browser run. The one failure anywhere is Firefox re-fitting a number input after a script changes its value; textareas are unaffected. A month of Baseline means some of your users are still catching up, and for them the failure is the one you already ship: a fixed-size box with a scrollbar.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Masks
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Verdict: Hold&lt;/strong&gt; · Not yet&lt;/p&gt;

&lt;p&gt;CSS masks crossed 30 months of support on June 7, and appear on about 0.4% of page loads. The label says delete your fallbacks. The tests say not yet.&lt;/p&gt;

&lt;p&gt;In Safari 26.5.2's current run, masks repeat correctly from a raster image and fail the same three tests when the mask source is an SVG: &lt;code&gt;mask-repeat-1-svg&lt;/code&gt;, &lt;code&gt;-2-svg&lt;/code&gt; and &lt;code&gt;-3-svg&lt;/code&gt;. Chrome passes all six. An SVG source is the common case, and a mask that fails to apply does not degrade: it reveals or hides the wrong thing. Keep whatever fallback you have until Safari's SVG path catches up.&lt;/p&gt;




</description>
      <category>css</category>
      <category>html</category>
      <category>browser</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
