<?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: Michaël Vanderheyden</title>
    <description>The latest articles on DEV Community by Michaël Vanderheyden (@th3s4mur41).</description>
    <link>https://dev.to/th3s4mur41</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F289330%2F9c66b8a2-69c5-431d-bc77-ede880958302.jpg</url>
      <title>DEV Community: Michaël Vanderheyden</title>
      <link>https://dev.to/th3s4mur41</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/th3s4mur41"/>
    <language>en</language>
    <item>
      <title>Beyond compliance: Building accessibility into quality with test automation</title>
      <dc:creator>Michaël Vanderheyden</dc:creator>
      <pubDate>Tue, 12 May 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/th3s4mur41/beyond-compliance-building-accessibility-into-quality-with-test-automation-1a49</link>
      <guid>https://dev.to/th3s4mur41/beyond-compliance-building-accessibility-into-quality-with-test-automation-1a49</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcfwoupxi4mn7fe90661l.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcfwoupxi4mn7fe90661l.jpg" alt="Comic-style illustration of Michaël Vanderheyden showing his latest post on the Atos Blog on a tablet" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’m hyped to share a new deep-dive article I’ve co-authored with &lt;a href="https://www.linkedin.com/in/j%C3%B6rg-jakoby-93a6a8264/" rel="noopener noreferrer"&gt;Jörg Jakoby&lt;/a&gt;, now live on the Atos blog!&lt;/p&gt;

&lt;p&gt;We’ve been exploring how to make accessibility a "business as usual" part of the development lifecycle. The secret? Don't reinvent the wheel.&lt;/p&gt;

&lt;p&gt;In this post, we dig into:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How to start checking accessibility directly in your CI pipeline.&lt;/li&gt;
&lt;li&gt;Why automation is a massive lever for preventing regressions (even if it doesn't cover 100%).&lt;/li&gt;
&lt;li&gt;Practical ways to extend the tools you already have in place to save time and effort.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Building inclusive tech doesn't have to be complex and expensive. It’s about working smarter with the automation you’ve already built!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Read the full story over at Atos:&lt;/strong&gt; &lt;a href="https://atos.net/en/blog/beyond-compliance-building-accessibility-into-quality-with-test-automation" rel="noopener noreferrer"&gt;Beyond compliance: Building accessibility into quality with test automation&lt;/a&gt;&lt;/p&gt;

</description>
      <category>a11y</category>
      <category>testautomation</category>
      <category>devops</category>
      <category>cicd</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Michaël Vanderheyden</dc:creator>
      <pubDate>Wed, 15 Apr 2026 13:14:59 +0000</pubDate>
      <link>https://dev.to/th3s4mur41/-21fg</link>
      <guid>https://dev.to/th3s4mur41/-21fg</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/mfairchild365/embedding-accessibility-into-ai-based-software-development-282k" class="crayons-story__hidden-navigation-link"&gt;Embedding Accessibility into AI based software development&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/mfairchild365" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F152506%2F86319f69-42bd-469e-8c09-996986a2d551.jpeg" alt="mfairchild365 profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/mfairchild365" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Michael Fairchild
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Michael Fairchild
                
              
              &lt;div id="story-author-preview-content-3344524" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/mfairchild365" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F152506%2F86319f69-42bd-469e-8c09-996986a2d551.jpeg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Michael Fairchild&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/mfairchild365/embedding-accessibility-into-ai-based-software-development-282k" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Mar 12&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/mfairchild365/embedding-accessibility-into-ai-based-software-development-282k" id="article-link-3344524"&gt;
          Embedding Accessibility into AI based software development
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/a11y"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;a11y&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/llm"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;llm&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/benchmark"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;benchmark&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/mfairchild365/embedding-accessibility-into-ai-based-software-development-282k" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/fire-f60e7a582391810302117f987b22a8ef04a2fe0df7e3258a5f49332df1cec71e.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/raised-hands-74b2099fd66a39f2d7eed9305ee0f4553df0eb7b4f11b01b6b1b499973048fe5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;18&lt;span class="hidden s:inline"&gt; reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/mfairchild365/embedding-accessibility-into-ai-based-software-development-282k#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              2&lt;span class="hidden s:inline"&gt; comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            5 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Labels: Automatic Checks and Manual Validation</title>
      <dc:creator>Michaël Vanderheyden</dc:creator>
      <pubDate>Tue, 14 Apr 2026 09:00:00 +0000</pubDate>
      <link>https://dev.to/th3s4mur41/labels-automatic-checks-and-manual-validation-58a2</link>
      <guid>https://dev.to/th3s4mur41/labels-automatic-checks-and-manual-validation-58a2</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fez8an153r1i5u9f2s3h2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fez8an153r1i5u9f2s3h2.jpg" alt="Comic-style illustration of Michaël Vanderheyden wearing a baseball cap and samurai-themed shirt, working on a laptop with a samurai sticker. To the side, accessibility icons and the hashtag #A11yTips promote practical accessibility tips for developers." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Labels are essential for screen reader users and overall accessibility. While automated tools can verify that labels are present on interactive elements, determining whether a label is meaningful and contextually appropriate still requires manual testing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://webaim.org/articles/screenreader_testing/" rel="noopener noreferrer"&gt;Screen reader testing&lt;/a&gt; can be challenging for developers and testers who aren't regular users. Practical alternatives include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inspecting labels and roles through the browser DevTools accessibility tree.&lt;/li&gt;
&lt;li&gt;Using voice navigation to verify that elements are reachable and operable by spoken commands.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Screen reader setup&lt;/strong&gt;&lt;br&gt;
If you do test with a screen reader, the results will only be reliable if your environment is correctly set up. The right screen reader depends on both your &lt;strong&gt;operating system&lt;/strong&gt; and the &lt;strong&gt;browser&lt;/strong&gt; you're testing with. Sara Soueidan's &lt;a href="https://www.sarasoueidan.com/blog/testing-environment-setup/" rel="noopener noreferrer"&gt;guide to setting up an accessible testing environment&lt;/a&gt; covers screen reader and browser pairings for macOS and Windows, virtual testing, mobile screen readers, and keyboard configuration.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  DevTools Accessibility Tree
&lt;/h2&gt;

&lt;p&gt;For developers who aren't regular screen reader users, browser DevTools offer a practical way to inspect how labels and roles are exposed to assistive technologies. Both Chromium-based browsers (like Edge and Chrome) and Firefox include an &lt;strong&gt;Accessibility Tree&lt;/strong&gt; view that mirrors what screen readers perceive.&lt;/p&gt;

&lt;p&gt;This tree shows the semantic structure of your page - including roles, names, states, and relationships - allowing you to verify whether interactive elements are properly labeled and accessible.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe8z202508li1bydnq2oa.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe8z202508li1bydnq2oa.jpg" alt="Screenshot comparing the accessibility tree views in Edge (Chromium) and Firefox DevTools. The left panel shows the Elements tab with the accessibility tree in Edge, while the right panel displays detailed accessibility properties in Firefox. An arrow highlights the menu location to access these tools." width="800" height="496"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Inspecting accessibility like a pro: Both Edge (Chromium) and Firefox offer built-in tools to explore the accessibility tree. Just open DevTools and follow the arrow to find the menu - it's easier than you think.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  How to access the Accessibility Tree
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Edge / Chrome:
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Open DevTools (&lt;code&gt;F12&lt;/code&gt; or &lt;code&gt;Ctrl+Shift+I&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Open DevTools settings through the 3-dot menu&lt;/li&gt;
&lt;li&gt;Go to the experiments tab and activate the &lt;strong&gt;Enable full accessibility tree view in Element panel&lt;/strong&gt; option&lt;/li&gt;
&lt;li&gt;Go to the &lt;strong&gt;Elements&lt;/strong&gt; tab&lt;/li&gt;
&lt;li&gt;Click the floating Accessibility button in the top right of the pane&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  Firefox:
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Open DevTools (&lt;code&gt;F12&lt;/code&gt; or &lt;code&gt;Ctrl+Shift+I&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Go to the &lt;strong&gt;Accessibility&lt;/strong&gt; tab directly&lt;/li&gt;
&lt;li&gt;Navigate the tree or select elements to inspect roles, names, and states&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The screenshot above compares both views using a demo from &lt;a href="https://codepen.io/th3s4mur41/pen/MYKGORX" rel="noopener noreferrer"&gt;this CodePen&lt;/a&gt;, showing how a checkbox labeled "Read" is exposed in the accessibility tree. You can see its role, name, and state - all critical for screen reader compatibility.&lt;/p&gt;

&lt;h2&gt;
  
  
  Voice Navigation
&lt;/h2&gt;

&lt;p&gt;Screen readers aren't the only way to validate whether labels are meaningful and usable. Voice navigation tools let you interact with a page the way users relying on speech commands would - asking the system to "click," "open," or "select" elements by name. This is a powerful way to check if your labels are both present and practical in real-world use.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why it matters
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;If a button or link can't be activated by its label, it's a sign the label isn't descriptive enough.&lt;/li&gt;
&lt;li&gt;Voice navigation highlights issues that automated checks often miss, such as ambiguous or duplicated labels.&lt;/li&gt;
&lt;li&gt;It helps ensure that your interface works for users who rely on voice control for accessibility or convenience.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  How to test with voice navigation
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Desktop&lt;/strong&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Windows (Voice Access)
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Enable Voice Access in Accessibility settings.&lt;/li&gt;
&lt;li&gt;Use commands like "Click Read" or "Open Settings" to test if elements respond correctly.&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  macOS (Voice Control)
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Turn on Voice Control in System Settings (or System Preferences in older versions) → Accessibility.&lt;/li&gt;
&lt;li&gt;Try commands such as "Click Log In" or "Select checkbox".&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Mobile&lt;/strong&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Android (Voice Access)
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings → Accessibility&lt;/strong&gt; and enable &lt;strong&gt;Voice Access&lt;/strong&gt; (you may need to install it from the Play Store first).&lt;/li&gt;
&lt;li&gt;Tap &lt;strong&gt;Open&lt;/strong&gt; in the Voice Access notification to start a session — numbered overlays will appear on interactive elements.&lt;/li&gt;
&lt;li&gt;Try commands like &lt;strong&gt;"Tap Read"&lt;/strong&gt; or &lt;strong&gt;"Scroll down"&lt;/strong&gt; to verify that elements are reachable by their label.&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Voice Access Numbers&lt;/strong&gt;&lt;br&gt;
Android also shows interactive element numbers on screen during a Voice Access session. If an element only gets a number but no spoken label, it is a strong signal the accessible name is missing or unclear.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h4&gt;
  
  
  iOS (Voice Control)
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings → Accessibility → Voice Control&lt;/strong&gt; and toggle it on.&lt;/li&gt;
&lt;li&gt;Try commands like &lt;strong&gt;"Tap Log In"&lt;/strong&gt; or &lt;strong&gt;"Tap checkbox"&lt;/strong&gt; to verify that elements respond to their visible or programmatic label.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Voice Navigation as a Developer Tool
&lt;/h3&gt;

&lt;p&gt;Voice navigation isn't just for end users with accessibility needs. Developers themselves may benefit from it at some point in their careers. For example, those experiencing hand mobility issues such as carpal tunnel syndrome can use voice commands as an alternative input method.&lt;/p&gt;

&lt;p&gt;Building with accessibility in mind ensures that these options are available when you or your users need them most.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;Properly associating labels with interactive elements isn't just a screen reader concern. As this article shows, labels are the backbone of voice navigation, the anchor for DevTools inspection, and a key signal for any assistive technology or automated agent, whether it's a switch device, a browser extension, an AI assistant filling out a form on your behalf, or a future input method we haven't seen yet.&lt;/p&gt;

&lt;p&gt;When a label is clear and correctly linked, everyone benefits: screen reader users hear the right name, voice control users can activate elements by speaking them, and sighted keyboard users get a larger click target for free.&lt;/p&gt;

&lt;p&gt;You have more testing tools at your disposal than you might think. Use whichever fits your workflow — open the accessibility tree, try a voice command, or both. The important thing is to make label validation a deliberate step, not an afterthought.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://th3s4mur41.me/blog/a11y-tips/labels-validation/" rel="noopener noreferrer"&gt;Th3S4mur41.me&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>a11y</category>
      <category>wcag</category>
      <category>devtools</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Michaël Vanderheyden</dc:creator>
      <pubDate>Thu, 26 Mar 2026 16:45:47 +0000</pubDate>
      <link>https://dev.to/th3s4mur41/-4lce</link>
      <guid>https://dev.to/th3s4mur41/-4lce</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/stuffbreaker/how-declarative-custom-elements-dce-could-improve-web-components-53eg" class="crayons-story__hidden-navigation-link"&gt;How Declarative Custom Elements (DCE) Could Improve Web Components&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/stuffbreaker" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F87382%2F524f7820-0def-4bf8-bea4-2beaf247d75d.jpeg" alt="stuffbreaker profile" class="crayons-avatar__image" width="400" height="400"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/stuffbreaker" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Burton Smith
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Burton Smith
                
              
              &lt;div id="story-author-preview-content-3033126" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/stuffbreaker" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F87382%2F524f7820-0def-4bf8-bea4-2beaf247d75d.jpeg" class="crayons-avatar__image" alt="" width="400" height="400"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Burton Smith&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/stuffbreaker/how-declarative-custom-elements-dce-could-improve-web-components-53eg" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Mar 24&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/stuffbreaker/how-declarative-custom-elements-dce-could-improve-web-components-53eg" id="article-link-3033126"&gt;
          How Declarative Custom Elements (DCE) Could Improve Web Components
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/html"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;html&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/javavscript"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;javavscript&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webcomponents"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webcomponents&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/stuffbreaker/how-declarative-custom-elements-dce-could-improve-web-components-53eg" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/raised-hands-74b2099fd66a39f2d7eed9305ee0f4553df0eb7b4f11b01b6b1b499973048fe5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;7&lt;span class="hidden s:inline"&gt; reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/stuffbreaker/how-declarative-custom-elements-dce-could-improve-web-components-53eg#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              3&lt;span class="hidden s:inline"&gt; comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            8 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>html</category>
      <category>javavscript</category>
      <category>webcomponents</category>
    </item>
    <item>
      <title>Making Scrollable Code Blocks Accessible</title>
      <dc:creator>Michaël Vanderheyden</dc:creator>
      <pubDate>Fri, 20 Feb 2026 11:59:17 +0000</pubDate>
      <link>https://dev.to/th3s4mur41/making-scrollable-code-blocks-accessible-3i0o</link>
      <guid>https://dev.to/th3s4mur41/making-scrollable-code-blocks-accessible-3i0o</guid>
      <description>&lt;p&gt;When you work on the web long enough, you get used to browsers disagreeing on the small things. But sometimes those “small things” quietly break accessibility in ways that aren’t obvious until you test with a keyboard.&lt;/p&gt;

&lt;p&gt;This is exactly what happened with scrollable elements.&lt;/p&gt;

&lt;p&gt;Most browsers like Chrome and Firefox automatically make scrollable regions keyboard‑focusable. That means if the content overflows, a keyboard user can tab into it and scroll through the content using the arrow keys. It’s intuitive, consistent, and aligns with WCAG’s requirement that scrollable regions must be keyboard accessible.&lt;br&gt;
Safari, however, doesn't follow this behavior. There's a long‑standing &lt;a href="https://bugs.webkit.org/show_bug.cgi?id=277290" rel="noopener noreferrer"&gt;bug report in WebKit Backlog&lt;/a&gt; where scrollable elements (like long code blocks or tables) do not receive keyboard focus, as reported by &lt;a href="https://adrianroselli.com/2022/06/keyboard-only-scrolling-areas.html" rel="noopener noreferrer"&gt;Adrian Roselli&lt;/a&gt;, making them inaccessible to keyboard users.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0sqa5bb62j99a9eaq9m0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0sqa5bb62j99a9eaq9m0.png" alt="WebKit Bug 277290" width="614" height="190"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Safari doesn’t make scrollable elements focusable
&lt;/h2&gt;

&lt;p&gt;In Safari, an element that becomes scrollable (e.g., long code snippets) does not receive focus by default. That means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You can see the scrollbar.&lt;/li&gt;
&lt;li&gt;You can scroll with a mouse or trackpad.&lt;/li&gt;
&lt;li&gt;But you cannot tab into it.&lt;/li&gt;
&lt;li&gt;And therefore you cannot scroll it using the keyboard.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is a direct accessibility failure under &lt;a href="https://www.w3.org/WAI/WCAG22/Understanding/keyboard.html" rel="noopener noreferrer"&gt;WCAG 2.2’s Keyboard criterion&lt;/a&gt;, which states that all functionality must be operable through a keyboard interface — including scrolling inside overflow regions.&lt;br&gt;
For keyboard‑only users, this effectively traps content. They can see the beginning of the content, but not the rest.&lt;br&gt;
And because Chrome and Firefox “do the right thing,” most developers never notice the issue.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why this matters more than it seems
&lt;/h2&gt;

&lt;p&gt;Scrollable code blocks are everywhere: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Documentation sites&lt;/li&gt;
&lt;li&gt;Developer blogs&lt;/li&gt;
&lt;li&gt;Design system pages&lt;/li&gt;
&lt;li&gt;API references&lt;/li&gt;
&lt;li&gt;Tutorials&lt;/li&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Code blocks are usually implemented using &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; elements. The &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; element is one of the most common non-interactive elements that becomes scrollable by default because it's designed to preserve formatting and not wrap content.&lt;br&gt;
If a code block is long enough to require scrolling, it becomes inaccessible to keyboard users in Safari.&lt;/p&gt;

&lt;p&gt;If a user can’t scroll them, they can’t read them. And if they can’t read them, the content might as well not exist.&lt;br&gt;
This is one of those accessibility issues that isn’t flashy, but has a real impact on real people.&lt;/p&gt;
&lt;h2&gt;
  
  
  The Solution
&lt;/h2&gt;

&lt;p&gt;There is a simple solution to the problem: make scrollable elements keyboard‑focusable by adding &lt;code&gt;tabindex="0"&lt;/code&gt;. This allows keyboard users to tab into the element and use arrow keys to scroll through the content.&lt;br&gt;
However, this requires developers to manually add &lt;code&gt;tabindex="0"&lt;/code&gt; to every scrollable &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; element, which is not ideal. It’s easy to forget, and it adds extra maintenance.&lt;br&gt;
Moreover, it’s not ideal to make every &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; focusable, since not all of them will be scrollable.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The polyfill is only a temporary workaround until Safari implements the expected behavior. It’s not a permanent solution, but it helps bridge the gap in the meantime.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;
  
  
  Automatically adding tabindex="0" when needed
&lt;/h3&gt;

&lt;p&gt;To fix this gap, I created a small polyfill: &lt;a href="https://github.com/Th3S4mur41/scroll-focus-polyfill" rel="noopener noreferrer"&gt;scroll-focus-polyfill&lt;/a&gt; that is pretty easy to use by simply including it on your page.&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;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://unpkg.com/scroll-focus-polyfill"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The idea is simple:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Detect when a &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; element becomes scrollable.&lt;/li&gt;
&lt;li&gt;Automatically add &lt;code&gt;tabindex="0"&lt;/code&gt; so it becomes keyboard-focusable.&lt;/li&gt;
&lt;li&gt;Only apply this where the behavior is not already provided by the browser.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This keeps the behavior consistent across browsers without forcing developers to manually annotate every code block.&lt;br&gt;
It’s intentionally lightweight, unobtrusive, and standards‑aligned.&lt;/p&gt;
&lt;h3&gt;
  
  
  Why not just add &lt;code&gt;tabindex="0"&lt;/code&gt; everywhere?
&lt;/h3&gt;

&lt;p&gt;You could, but that introduces its own problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Non‑scrollable &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; elements don’t need to be in the tab order.&lt;/li&gt;
&lt;li&gt;Adding unnecessary focus targets creates noise for keyboard users.&lt;/li&gt;
&lt;li&gt;It also breaks expected semantics — not every &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; is interactive.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The polyfill only applies focusability where it's actually needed.&lt;/p&gt;
&lt;h3&gt;
  
  
  What about other scrollable elements?
&lt;/h3&gt;

&lt;p&gt;While this polyfill focuses on &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; elements by default for performance reasons, it can be configured to also apply the same logic to other elements like tables, divs with &lt;code&gt;white-space: nowrap&lt;/code&gt;, or any other scrollable container.&lt;br&gt;
For example, if you have a class &lt;code&gt;scrollable&lt;/code&gt; that prevents an element from wrapping, you can easily extend the polyfill to handle any element with that class.&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;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://unpkg.com/scroll-focus-polyfill"&lt;/span&gt;
        &lt;span class="na"&gt;data-selectors=&lt;/span&gt;&lt;span class="s"&gt;"pre, .scrollable"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  A subtle bug with real accessibility impact
&lt;/h2&gt;

&lt;p&gt;This is a great example of how accessibility issues often hide in the details. &lt;br&gt;
Safari’s behavior isn’t “wrong” in a spec sense — but it’s inconsistent with user expectations and with other browsers’ accessibility affordances.&lt;br&gt;
And because developers don't always test keyboard navigation explicitly in Safari, the issue slips through unnoticed.&lt;br&gt;
The polyfill bridges that gap until Safari aligns with the behavior of other engines.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Making scrollable code blocks accessible is a small but important step towards a more inclusive web.&lt;br&gt;
By understanding the issue, implementing a simple polyfill, and advocating for better cross‑browser consistency, we can ensure that all users have equal access to content — regardless of their browser or input method.&lt;br&gt;
If you maintain a documentation site, developer blog, or any content with scrollable code blocks, consider implementing this polyfill to improve accessibility for your keyboard users. It’s a small change that can make a big difference.&lt;/p&gt;




&lt;p&gt;Join the conversation on &lt;a href="https://bsky.app/profile/th3s4mur41.me/post/3meqi7ecnjc2z" rel="noopener noreferrer"&gt;Bluesky&lt;/a&gt; or &lt;a href="https://www.linkedin.com/posts/michaelvanderheyden_making-scrollable-code-blocks-accessible-activity-7428049258546737153-_xQi" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://th3s4mur41.me/blog/scroll-focus-polyfill/" rel="noopener noreferrer"&gt;https://th3s4mur41.me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>a11y</category>
      <category>wcag</category>
      <category>howto</category>
      <category>keyboardnavigation</category>
    </item>
    <item>
      <title>Contrast: Beyond WCAG Compliance</title>
      <dc:creator>Michaël Vanderheyden</dc:creator>
      <pubDate>Wed, 14 Jan 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/th3s4mur41/contrast-beyond-wcag-compliance-lh8</link>
      <guid>https://dev.to/th3s4mur41/contrast-beyond-wcag-compliance-lh8</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs4sc1qialqdcpaxx2s67.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs4sc1qialqdcpaxx2s67.jpg" alt="Comic-style illustration of a bearded developer wearing a baseball cap and samurai-themed shirt, working on a laptop with a samurai sticker. To the side, accessibility icons and the hashtag #A11yTips promote practical accessibility tips for developers." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contrast is one of the easiest accessibility aspects to evaluate because it can be measured with algorithms. Whether through automated tools or semi‑automatic checks, developers can quickly verify if text and background combinations meet established standards. This makes contrast a practical starting point for improving accessibility - though, as we'll see, compliance alone doesn't always guarantee the best user experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  WCAG vs APCA: Understanding the Difference
&lt;/h2&gt;

&lt;p&gt;While &lt;a href="https://www.w3.org/TR/WCAG22/#contrast-minimum" rel="noopener noreferrer"&gt;WCAG guidelines&lt;/a&gt; provide a solid foundation for color contrast, strict compliance sometimes leads to suboptimal results with certain colors. Consider using the &lt;a href="https://git.apcacontrast.com/documentation/APCAeasyIntro" rel="noopener noreferrer"&gt;APCA (Accessible Perceptual Contrast Algorithm)&lt;/a&gt; as an alternative or in addition to WCAG checks. APCA offers a more nuanced approach to contrast that better reflects human perception.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fth3s4mur41.me%2F_astro%2Fcontrast-wcag-vs-apca.DU4TBag9_Z1uOBIv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fth3s4mur41.me%2F_astro%2Fcontrast-wcag-vs-apca.DU4TBag9_Z1uOBIv.png" alt="Same background, different verdicts: APCA favors readability of white text on orange background, while WCAG prefers&amp;lt;br&amp;gt;
black. A striking example of how contrast standards can diverge." width="737" height="330"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Visual clarity vs legacy metrics: Though WCAG favors black text on orange background, users often find white more&lt;br&gt;
readable. APCA captures this perceptual nuance, challenging traditional contrast assumptions.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Try the demo interactively:&lt;/p&gt;

&lt;h3&gt;WCAG Levels in Brief&lt;/h3&gt;

&lt;h3&gt;
  
  
  Real-world example: Stack Overflow
&lt;/h3&gt;

&lt;p&gt;For example, Stack Overflow recently transitioned to APCA for their accessibility design, improving readability and user experience. You can read more about their approach and lessons learned in their blog post: &lt;a href="https://stackoverflow.blog/2024/08/07/accessibility-by-design-building-interfaces-for-everyone-at-stack-overflow/" rel="noopener noreferrer"&gt;Accessibility by Design at Stack Overflow&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;To keep contrast checks in their automated accessibility testing, they also built custom Axe rules that validate APCA contrast levels (instead of the traditional WCAG contrast ratio checks). That work is available publicly as &lt;a href="https://github.com/StackExchange/apca-check/tree/main" rel="noopener noreferrer"&gt;StackExchange/apca-check&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check contrast (DevTools + quick tools)
&lt;/h2&gt;

&lt;p&gt;Even if you run automated checks, it’s useful to spot‑check contrast right in the browser while you build.&lt;/p&gt;

&lt;h3&gt;
  
  
  Chrome / Chromium-based browsers
&lt;/h3&gt;

&lt;p&gt;You can see contrast information in a few places:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use the element picker (“Select an element in the page to inspect”, usually + + ) to inspect the text you care about.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;Styles&lt;/strong&gt; panel, open the color picker for the &lt;code&gt;color&lt;/code&gt; property; DevTools can display contrast results for the foreground/background pairing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fth3s4mur41.me%2F_astro%2Fchrome-inspect-popover.CAogomm4_Z1QFJmV.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fth3s4mur41.me%2F_astro%2Fchrome-inspect-popover.CAogomm4_Z1QFJmV.png" alt="Chrome DevTools element picker highlighting a text element and showing the inspect&amp;lt;br&amp;gt;
popover." width="178" height="254"&gt;&lt;/a&gt; &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fth3s4mur41.me%2F_astro%2Fchrome-color-picker.ChK_ceAM_Z1VOITq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fth3s4mur41.me%2F_astro%2Fchrome-color-picker.ChK_ceAM_Z1VOITq.png" alt="Chrome DevTools color picker showing contrast information for the selected foreground and background&amp;lt;br&amp;gt;
colors." width="277" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Chrome DevTools: use the element picker to target the exact text you want to evaluate, or use the&lt;br&gt;
 picker to view contrast results.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Known DevTools issue:&lt;/strong&gt; Chrome DevTools has a known issue (&lt;a href="https://crbug.com/1414206" rel="noopener noreferrer"&gt;Chromium bug 1414206&lt;/a&gt;) where contrast ratios aren’t displayed if a color is applied to an element containing children (or even a comment node). Until it’s fixed, check contrast directly on the actual text node(s), or use an external checker.&lt;/p&gt;

&lt;p&gt;If you want to switch DevTools to the APCA algorithm, open &lt;strong&gt;DevTools Settings&lt;/strong&gt; → &lt;strong&gt;Experiments&lt;/strong&gt; and enable the APCA contrast option. The main downside is that DevTools typically shows either WCAG &lt;em&gt;or&lt;/em&gt; APCA results, not both at once.&lt;/p&gt;

&lt;h3&gt;
  
  
  Firefox
&lt;/h3&gt;

&lt;p&gt;Firefox DevTools also shows contrast in the color picker for the &lt;code&gt;color&lt;/code&gt; property.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fth3s4mur41.me%2F_astro%2Ffirefox-color-picker.BeedRq-v_yPOKI.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fth3s4mur41.me%2F_astro%2Ffirefox-color-picker.BeedRq-v_yPOKI.png" alt="Firefox DevTools color picker displaying contrast information for the selected text&amp;lt;br&amp;gt;
color." width="260" height="246"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Firefox DevTools: check contrast in the color picker for the property.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  When you want WCAG and APCA side-by-side
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://visbug.web.app/" rel="noopener noreferrer"&gt;VisBug&lt;/a&gt; is a good alternative for quick checks, since its contrast checker shows WCAG and APCA results side by side.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd39x1oqrvy3xr125at2b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd39x1oqrvy3xr125at2b.png" alt="VisBug contrast checker showing WCAG and APCA results side by side." width="347" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;VisBug: handy for quick spot-checks when you want WCAG and APCA at the same time.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Warning: Contrast tools have limits
&lt;/h2&gt;

&lt;p&gt;All of these tools are helpful, but they have a limitation: they can only reliably validate contrast by following the normal DOM and paint flow to determine the “effective” background behind text.&lt;/p&gt;

&lt;p&gt;If you use visual stacking (for example via CSS Grid overlap, positioned layers, or a background created with a pseudo-element like &lt;code&gt;::before&lt;/code&gt;) where the foreground and background colors live on different elements, tools can pick the wrong background to compare against.&lt;/p&gt;

&lt;p&gt;In the following demo, both boxes look identical, but most tools report a contrast of 1 (no contrast) for the second box because they compare the text against the page background (e.g. &lt;code&gt;body&lt;/code&gt;) rather than the yellow background painted by &lt;code&gt;::before&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Tools and rules are there to help you make better decisions, not to replace judgment. The real goal of contrast work isn’t “passing a checker”, it’s making content that people can comfortably read and use.&lt;/p&gt;

&lt;p&gt;Ideally, aim to satisfy both WCAG and APCA. But when you can’t (or when the two point you in different directions), favor real user experience over compliance: validate with real content, real contexts, and—when possible—real users.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://th3s4mur41.me/blog/a11y-tips/contrast/" rel="noopener noreferrer"&gt;Th3S4mur41.me&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>a11y</category>
      <category>wcag</category>
      <category>apca</category>
      <category>colorcontrast</category>
    </item>
  </channel>
</rss>
