Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <main>

  <h1>2.5.8 Target Size Examples</h1>

  <ul>
    <li><a href="#Pass">Passing</a></li>
    <li><a href="#Fail">Failing</a></li>
    <li><a href="#Bookmarklet">Testing Bookmarklets</a></li>
    <li><a href="#WCAG">WCAG Language</a></li>
  </ul>

  
  
  
  <h2 id="Pass">Passing</h2>

  <p>
    These pass 2.5.8 because they are each 24px.
  </p>

  <p class="b24px">
    <button type="button">!</button><button type="button">?</button><button type="button">…</button>
  </p>

  <p>
    These skewed buttons pass 2.5.8 because a 24px circle centered on them does not intersect another target.
  </p>

  <p class="b24px-skew">
    <button type="button">!</button><button type="button">?</button><button type="button">…</button>
  </p>

  <p>
    These circular buttons pass 2.5.8 because a 24px circle centered on them does not intersect another target.
  </p>

  <p class="b24px-circle">
    <button type="button">!</button><button type="button">?</button><button type="button">…</button>
  </p>

  <p>
    These 12px buttons pass 2.5.8 because a 24px circle centered on them does not intersect another target nor its circle.
  </p>

  <p class="b12px">
    <button type="button">!</button><button type="button">?</button><button type="button">…</button>
  </p>

  <p>
    These 18px image links pass 2.5.8 because a 24px circle centered on them does not intersect another target.
  </p>

  <p class="a18px">
    <a href="#" aria-label="Star"><svg viewBox="0 0 100 100" focusable="false"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#Star1"  aria-hidden="true"></use></svg></a><!--
    --><a href="#" aria-label="Star"><svg viewBox="0 0 100 100" focusable="false"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#Star1"  aria-hidden="true"></use></svg></a><!--
    --><a href="#" aria-label="Star"><svg viewBox="0 0 100 100" focusable="false"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#Star1"  aria-hidden="true"></use></svg></a>
  </p>
  
  <p>
    The links in this disclosure widget pass 2.5.8 because they are 24px in height. If this was a menu or listbox control with the same design, they would still pass.
  </p>
  
  <button type="button" id="btnDisc01" aria-expanded="false" onclick="toggleDisclosure(this.id);" aria-controls="Disclosed01">
  <span>
    <svg xmlns="\http://www.w3.org/2000/svg&quot;" viewBox="0 0 80 80" focusable="false">
      <path d="M70.3 13.8L40 66.3 9.7 13.8z"></path>
    </svg>
  </span>
  Disclosure Control
</button>
<div id="Disclosed01" class="disclosee">
  <ul>
    <li><a href="#">This is a link</a></li>
    <li><a href="#">It could also be a menu item</a></li>
    <li><a href="#">Or a listbox option</a></li>
  </ul>
</div>

  <p>
    The 16px sort buttons pass 2.5.8 because a 24px circle centered on them does not intersect another target nor its circle.
  </p>

    <table>
      <caption>Books</caption>
      <thead>
        <tr>
          <th>
            Author
            <button type="button" aria-label="Sort up"><svg viewBox="0 0 425 233.7" focusable="false" class="sort asc" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sort-asc"></use></svg></button>
            <button type="button" aria-label="Sort down"><svg viewBox="0 0 425 233.7" focusable="false" class="sort des" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sort-des"></use></svg></button>
          </th>
          <th>
            Title
            <button type="button" aria-label="Sort up"><svg viewBox="0 0 425 233.7" focusable="false" class="sort asc" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sort-asc"></use></svg></button>
            <button type="button" aria-label="Sort down"><svg viewBox="0 0 425 233.7" focusable="false" class="sort des" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sort-des"></use></svg></button>
          </th>
          <th>
            Year
            <button type="button" aria-label="Sort up"><svg viewBox="0 0 425 233.7" focusable="false" class="sort asc" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sort-asc"></use></svg></button>
            <button type="button" aria-label="Sort down"><svg viewBox="0 0 425 233.7" focusable="false" class="sort des" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sort-des"></use></svg></button>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Mary Shelley</td>
          <td>Frankenstein; or, The Modern Prometheus</td>
          <td>1818</td>
        </tr>
        <tr>
          <td>George Orwell</td>
          <td>Nineteen Eighty-Four</td>
          <td>1948</td>
        </tr>
      </tbody>
    </table>
 
  <p>
    This toolbar passes 2.5.8 because each item is 24px tall and the <code>flex-basis</code> restricts items to no narrower than 24px.
  </p>
  
  <p class="b24pxtoolbar">
    <button type="button">Cut</button><button type="button">Copy</button><button type="button">Paste</button><button type="button">Export</button><button type="button">Undo</button><button type="button">Reload</button><button type="button">Upload</button><button type="button">Download</button><button type="button">Sideload</button><button type="button">Load</button><button type="button">!</button><button type="button">?</button><button type="button">…</button><button type="button"><img src="https://assets.codepen.io/2729/pdf.png" alt="PDF" width="12" height="12"></button>
  </p>
  
  
  
  

  <h2 id="Fail">Failing</h2>

  <p>
    These fail 2.5.8 because they are each 20px and a 24px circle centered on them intersects another target.
  </p>

  <p class="b20px">
    <button type="button">!</button><button type="button">?</button><button type="button">…</button>
  </p>

  <p>
    These 24px skewed buttons fail 2.5.8 because a 24px circle centered on them intersects another target.
  </p>

  <p class="b24px-more-skew">
    <button type="button">!</button><button type="button">?</button><button type="button">…</button>
  </p>

  <p>
    These circular buttons fail 2.5.8 because they are 22px circles and a 24px circle centered on them intersects another target.
  </p>

  <p class="b22px-circle">
    <button type="button">!</button><button type="button">?</button><button type="button">…</button>
  </p>

  <p>
    These buttons fail 2.5.8 because they are 12px and a 24px circle centered on them intersects another target.
  </p>

  <p class="b12px-small">
    <button type="button">!</button><button type="button">?</button><button type="button">…</button>
  </p>

  <p>
    These image links fail 2.5.8 because they are 18px and a 24px circle centered on them intersects another target.
  </p>

  <p class="a18px-small">
    <a href="#" aria-label="Star"><svg viewBox="0 0 100 100" focusable="false"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#Star1"  aria-hidden="true"></use></svg></a><!--
    --><a href="#" aria-label="Star"><svg viewBox="0 0 100 100" focusable="false"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#Star1"  aria-hidden="true"></use></svg></a><!--
    --><a href="#" aria-label="Star"><svg viewBox="0 0 100 100" focusable="false"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#Star1"  aria-hidden="true"></use></svg></a>
  </p>
  
  <p>
    The links in this disclosure widget fail 2.5.8 because they are effectively 22.4px in height and a 24px circle centered on them intersects another target. If this was a menu or listbox control with the same design, they would still fail for the same reason.
  </p>
  
  <button type="button" id="btnDisc02" aria-expanded="false" onclick="toggleDisclosure(this.id);" aria-controls="Disclosed02">
  <span>
    <svg xmlns="\http://www.w3.org/2000/svg&quot;" viewBox="0 0 80 80" focusable="false">
      <path d="M70.3 13.8L40 66.3 9.7 13.8z"></path>
    </svg>
  </span>
  Disclosure Control
</button>
<div id="Disclosed02" class="disclosee">
  <ul>
    <li><a href="#">This is a link</a></li>
    <li><a href="#">It could also be a menu item</a></li>
    <li><a href="#">Or a listbox option</a></li>
  </ul>
</div>
  
  
  <p>
    The 16px sort buttons fail 2.5.8 because a 24px circle centered on them intersects another target's circle.
  </p>

    <table>
      <caption>Books</caption>
      <thead>
        <tr>
          <th>
            Author
            <button type="button" aria-label="Sort up"><svg viewBox="0 0 425 233.7" focusable="false" class="sort asc" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sort-asc"></use></svg></button><button type="button" aria-label="Sort down"><svg viewBox="0 0 425 233.7" focusable="false" class="sort des" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sort-des"></use></svg></button>
          </th>
          <th>
            Title
            <button type="button" aria-label="Sort up"><svg viewBox="0 0 425 233.7" focusable="false" class="sort asc" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sort-asc"></use></svg></button><button type="button" aria-label="Sort down"><svg viewBox="0 0 425 233.7" focusable="false" class="sort des" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sort-des"></use></svg></button>
          </th>
          <th>
            Year
            <button type="button" aria-label="Sort up"><svg viewBox="0 0 425 233.7" focusable="false" class="sort asc" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sort-asc"></use></svg></button>
            <button type="button" aria-label="Sort down"><svg viewBox="0 0 425 233.7" focusable="false" class="sort des" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sort-des"></use></svg></button>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Mary Shelley</td>
          <td>Frankenstein; or, The Modern Prometheus</td>
          <td>1818</td>
        </tr>
        <tr>
          <td>George Orwell</td>
          <td>Nineteen Eighty-Four</td>
          <td>1948</td>
        </tr>
      </tbody>
    </table>
 
  <p>
    This toolbar buttons fail 2.5.8 because a 24px circle centered on them intersects another target (too short and some are too narrow).
  </p>
  
  <p class="b24pxtoolbar b24pxtoolbar-small">
    <button type="button">Cut</button><button type="button">Copy</button><button type="button">Paste</button><button type="button">Export</button><button type="button">Undo</button><button type="button">Reload</button><button type="button">Upload</button><button type="button">Download</button><button type="button">Sideload</button><button type="button">Load</button><button type="button">!</button><button type="button">?</button><button type="button">…</button><button type="button"><img src="https://assets.codepen.io/2729/pdf.png" alt="PDF" width="12" height="12"></button>
  </p>


  
  
  
  
  <h2 id="Bookmarklet">Testing Bookmarklets</h2>

  <p>
    Trigger this to set your pointer cursor to a 24px circle on this page. Activate it again to unset it. Drag it into your browser's bookmarks bar to use it on other sites.
  </p>

  <p class="booktrigger">
    <a href="javascript:(function(){var d=document,id='AAR24pxBkmklt1',el=d.getElementById(id),f=d.querySelectorAll('iframe'),i=0,l=f.length;if(el){function removeFromShadows(root){for(var el of root.querySelectorAll('*')){if(el.shadowRoot){el.shadowRoot.getElementById(id).remove();removeFromShadows(el.shadowRoot);}}}el.remove();if(l){for(i=0;i<l;i++){try{f[i].contentWindow.document.getElementById(id).remove();removeFromShadows(f[i].contentWindow.document);}catch(e){console.log(e)}}}removeFromShadows(d);}else{s=d.createElement('style');s.id=id;s.appendChild(d.createTextNode(%27*{ cursor: url(&quot;data:image/svg+xml,%253Csvg viewBox=\&#39;0 0 24 24\&#39; width=\&#39;24\&#39; height=\&#39;24\&#39; xmlns=\&#39;http://www.w3.org/2000/svg\&#39;%253E%253Ccircle cx=\&#39;50%2525\&#39; cy=\&#39;50%2525\&#39; r=\&#39;11.5\&#39; fill=\&#39;none\&#39; stroke=\&#39;%2523000\&#39; stroke-width=\&#39;1\&#39;/%253E%253Ccircle cx=\&#39;50%2525\&#39; cy=\&#39;50%2525\&#39; r=\&#39;10.5\&#39; fill=\&#39;none\&#39; stroke=\&#39;%2523fff\&#39; stroke-width=\&#39;1\&#39;/%253E%253Cline x1=\&#39;30%2525\&#39; y1=\&#39;50%2525\&#39; x2=\&#39;70%2525\&#39; y2=\&#39;50%2525\&#39; stroke=\&#39;%2523000\&#39; stroke-width=\&#39;2\&#39;/%253E%253Cline x1=\&#39;50%2525\&#39; y1=\&#39;30%2525\&#39; x2=\&#39;50%2525\&#39; y2=\&#39;70%2525\&#39; stroke=\&#39;%2523000\&#39; stroke-width=\&#39;2\&#39;/%253E%253C/svg%253E&quot;) 12 12, auto !important}%27));function applyToShadows(root){for(var el of root.querySelectorAll('*')){if(el.shadowRoot){el.shadowRoot.appendChild(s.cloneNode(true));applyToShadows(el.shadowRoot);}}}d.getElementsByTagName('head')[0].appendChild(s);for(i=0;i<l;i++){try{f[i].contentWindow.document.getElementsByTagName('head')[0].appendChild(s.cloneNode(true));applyToShadows(f[i].contentWindow.document);}catch(e){console.log(e)}}applyToShadows(d);}})();">
      <svg viewBox="0 0 24 24" width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
        <circle cx="50%" cy="50%" r="11.5" fill="none" stroke="#000" stroke-width="1" />
        <circle cx="50%" cy="50%" r="10.5" fill="none" stroke="#fff" stroke-width="1" />
        <line x1="30%" y1="50%" x2="70%" y2="50%" stroke="#000" stroke-width="2" />
        <line x1="50%" y1="30%" x2="50%" y2="70%" stroke="#000" stroke-width="2" />
      </svg>
      24px SVG Circle Cursor v1
    </a>
  </p>
  
  
 <p class="booktrigger">
  <a href="javascript:(function(){var d=document,id='AAR24pxBkmklt2',el=d.getElementById(id),f=d.querySelectorAll('iframe'),i=0,l=f.length;if(el){function removeFromShadows(root){for(var el of root.querySelectorAll('*')){if(el.shadowRoot){el.shadowRoot.getElementById(id).remove();removeFromShadows(el.shadowRoot);}}}el.remove();if(l){for(i=0;i<l;i++){try{f[i].contentWindow.document.getElementById(id).remove();removeFromShadows(f[i].contentWindow.document);}catch(e){console.log(e)}}}removeFromShadows(d);}else{s=d.createElement('style');s.id=id;s.appendChild(d.createTextNode(%27*{ cursor: url(&quot;data:image/svg+xml,%253Csvg viewBox=\&#39;0 0 24 24\&#39; width=\&#39;24\&#39; height=\&#39;24\&#39; xmlns=\&#39;http://www.w3.org/2000/svg\&#39;%253E%253Ccircle cx=\&#39;50%2525\&#39; cy=\&#39;50%2525\&#39; r=\&#39;11.5\&#39; fill=\&#39;none\&#39; stroke=\&#39;%2523000\&#39; stroke-width=\&#39;1\&#39;/%253E%253Ccircle cx=\&#39;50%2525\&#39; cy=\&#39;50%2525\&#39; r=\&#39;10.5\&#39; fill=\&#39;none\&#39; stroke=\&#39;%2523ff0\&#39; stroke-width=\&#39;1\&#39;/%253E%253Cline x1=\&#39;7\&#39; y1=\&#39;11.5\&#39; x2=\&#39;12\&#39; y2=\&#39;11.5\&#39; stroke=\&#39;%2523ff0\&#39; stroke-width=\&#39;1\&#39;/%253E%253Cline x1=\&#39;12\&#39; y1=\&#39;11.5\&#39; x2=\&#39;17\&#39; y2=\&#39;11.5\&#39; stroke=\&#39;%2523000\&#39; stroke-width=\&#39;1\&#39;/%253E%253Cline x1=\&#39;7\&#39; y1=\&#39;12.5\&#39; x2=\&#39;12\&#39; y2=\&#39;12.5\&#39; stroke=\&#39;%2523000\&#39; stroke-width=\&#39;1\&#39;/%253E%253Cline x1=\&#39;12\&#39; y1=\&#39;12.5\&#39; x2=\&#39;17\&#39; y2=\&#39;12.5\&#39; stroke=\&#39;%2523ff0\&#39; stroke-width=\&#39;1\&#39;/%253E%253Cline x1=\&#39;11.5\&#39; y1=\&#39;7\&#39; x2=\&#39;11.5\&#39; y2=\&#39;12\&#39; stroke=\&#39;%2523ff0\&#39; stroke-width=\&#39;1\&#39;/%253E%253Cline x1=\&#39;11.5\&#39; y1=\&#39;12\&#39; x2=\&#39;11.5\&#39; y2=\&#39;17\&#39; stroke=\&#39;%2523000\&#39; stroke-width=\&#39;1\&#39;/%253E%253Cline x1=\&#39;12.5\&#39; y1=\&#39;7\&#39; x2=\&#39;12.5\&#39; y2=\&#39;12\&#39; stroke=\&#39;%2523000\&#39; stroke-width=\&#39;1\&#39;/%253E%253Cline x1=\&#39;12.5\&#39; y1=\&#39;12\&#39; x2=\&#39;12.5\&#39; y2=\&#39;17\&#39; stroke=\&#39;%2523ff0\&#39; stroke-width=\&#39;1\&#39;/%253E%253C/svg%253E&quot;) 12 12, auto !important}%27));function applyToShadows(root){for(var el of root.querySelectorAll('*')){if(el.shadowRoot){el.shadowRoot.appendChild(s.cloneNode(true));applyToShadows(el.shadowRoot);}}}d.getElementsByTagName('head')[0].appendChild(s);for(i=0;i<l;i++){try{f[i].contentWindow.document.getElementsByTagName('head')[0].appendChild(s.cloneNode(true));applyToShadows(f[i].contentWindow.document);}catch(e){console.log(e)}}applyToShadows(d);}})();">
    <svg viewBox="0 0 24 24" width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><circle cx="50%" cy="50%" r="11.5" fill="none" stroke="#000" stroke-width="1"/><circle cx="50%" cy="50%" r="10.5" fill="none" stroke="#ff0" stroke-width="1"/><line x1="7" y1="11.5" x2="12" y2="11.5" stroke="#ff0" stroke-width="1"/><line x1="12" y1="11.5" x2="17" y2="11.5" stroke="#000" stroke-width="1"/><line x1="7" y1="12.5" x2="12" y2="12.5" stroke="#000" stroke-width="1"/><line x1="12" y1="12.5" x2="17" y2="12.5" stroke="#ff0" stroke-width="1"/><line x1="11.5" y1="7" x2="11.5" y2="12" stroke="#ff0" stroke-width="1"/><line x1="11.5" y1="12" x2="11.5" y2="17" stroke="#000" stroke-width="1"/><line x1="12.5" y1="7" x2="12.5" y2="12" stroke="#000" stroke-width="1"/><line x1="12.5" y1="12" x2="12.5" y2="17" stroke="#ff0" stroke-width="1"/></svg>
    24px SVG Circle Cursor v2
   </a>
  </p>
  
  <p class="booktrigger">
    <a href="javascript:(function(){var d=document,id='AAR24pxBkmklt3',el=d.getElementById(id),f=d.querySelectorAll('iframe'),i=0,l=f.length;if(el){function removeFromShadows(root){for(var el of root.querySelectorAll('*')){if(el.shadowRoot){el.shadowRoot.getElementById(id).remove();removeFromShadows(el.shadowRoot);}}}el.remove();if(l){for(i=0;i<l;i++){try{f[i].contentWindow.document.getElementById(id).remove();removeFromShadows(f[i].contentWindow.document);}catch(e){console.log(e)}}}removeFromShadows(d);}else{s=d.createElement('style');s.id=id;s.appendChild(d.createTextNode(%27*{ cursor: url(&quot;data:image/svg+xml,%253Csvg viewBox=\&#39;0 0 24 24\&#39; width=\&#39;24\&#39; height=\&#39;24\&#39; xmlns=\&#39;http://www.w3.org/2000/svg\&#39;%253E%253Cdefs%253E%253CclipPath id=\&#39;TopRight\&#39;%253E%253Crect x=\&#39;12\&#39; y=\&#39;0\&#39; width=\&#39;12\&#39; height=\&#39;12\&#39; /%253E%253C/clipPath%253E%253CclipPath id=\&#39;TopLeft\&#39;%253E%253Crect x=\&#39;0\&#39; y=\&#39;0\&#39; width=\&#39;12\&#39; height=\&#39;12\&#39; /%253E%253C/clipPath%253E%253CclipPath id=\&#39;BottomLeft\&#39;%253E%253Crect x=\&#39;0\&#39; y=\&#39;12\&#39; width=\&#39;12\&#39; height=\&#39;12\&#39; /%253E%253C/clipPath%253E%253CclipPath id=\&#39;BottomRight\&#39;%253E%253Crect x=\&#39;12\&#39; y=\&#39;12\&#39; width=\&#39;12\&#39; height=\&#39;12\&#39; /%253E%253C/clipPath%253E%253C/defs%253E%253Ccircle cx=\&#39;50%2525\&#39; cy=\&#39;50%2525\&#39; r=\&#39;11.5\&#39; fill=\&#39;%25230008\&#39; stroke=\&#39;%2523000\&#39; stroke-width=\&#39;1\&#39; clip-path=\&#39;url(%2523TopRight)\&#39;/%253E%253Ccircle cx=\&#39;50%2525\&#39; cy=\&#39;50%2525\&#39; r=\&#39;11.5\&#39; fill=\&#39;%25230008\&#39; stroke=\&#39;%2523000\&#39; stroke-width=\&#39;1\&#39; clip-path=\&#39;url(%2523BottomLeft)\&#39;/%253E%253Ccircle cx=\&#39;50%2525\&#39; cy=\&#39;50%2525\&#39; r=\&#39;11.5\&#39; fill=\&#39;%2523fff8\&#39; stroke=\&#39;%2523fff\&#39; stroke-width=\&#39;1\&#39; clip-path=\&#39;url(%2523TopLeft)\&#39;/%253E%253Ccircle cx=\&#39;50%2525\&#39; cy=\&#39;50%2525\&#39; r=\&#39;11.5\&#39; fill=\&#39;%2523fff8\&#39; stroke=\&#39;%2523fff\&#39; stroke-width=\&#39;1\&#39; clip-path=\&#39;url(%2523BottomRight)\&#39;/%253E%253C/svg%253E&quot;) 12 12, auto !important}%27));function applyToShadows(root){for(var el of root.querySelectorAll('*')){if(el.shadowRoot){el.shadowRoot.appendChild(s.cloneNode(true));applyToShadows(el.shadowRoot);}}}d.getElementsByTagName('head')[0].appendChild(s);for(i=0;i<l;i++){try{f[i].contentWindow.document.getElementsByTagName('head')[0].appendChild(s.cloneNode(true));applyToShadows(f[i].contentWindow.document);}catch(e){console.log(e)}}applyToShadows(d);}})();">
      <svg viewBox="0 0 24 24" width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><defs><clipPath id="TopRight"><rect x="12" y="0" width="12" height="12" /></clipPath><clipPath id="TopLeft"><rect x="0" y="0" width="12" height="12" /></clipPath><clipPath id="BottomLeft"><rect x="0" y="12" width="12" height="12" /></clipPath><clipPath id="BottomRight"><rect x="12" y="12" width="12" height="12" /></clipPath></defs><circle cx="50%" cy="50%" r="11.5" fill="#0008" stroke="#000" stroke-width="1" clip-path="url(#TopRight)"/><circle cx="50%" cy="50%" r="11.5" fill="#0008" stroke="#000" stroke-width="1" clip-path="url(#BottomLeft)"/><circle cx="50%" cy="50%" r="11.5" fill="#fff8" stroke="#fff" stroke-width="1" clip-path="url(#TopLeft)"/><circle cx="50%" cy="50%" r="11.5" fill="#fff8" stroke="#fff" stroke-width="1" clip-path="url(#BottomRight)"/></svg>
      24px SVG Circle Cursor v3
    </a>
  </p>

  <h2 id="WCAG">WCAG Language</h2>

  <p>
    From the W3C Editor's Draft 10 May 2023, <a href="https://w3c.github.io/wcag/guidelines/22/#target-size-minimum">Success Criterion 2.5.8 Target Size (Minimum)</a> reads:
  </p>

  <blockquote>
    <p>The size of the <a href="https://w3c.github.io/wcag/guidelines/22/#dfn-targets" title="region of the display that will accept a pointer action, such as the interactive area of a user interface component">target</a> for <a href="https://w3c.github.io/wcag/guidelines/22/#dfn-pointer-inputs" title="input from a device that can target a specific coordinate (or set of coordinates) on a screen, such as a mouse, pen, or touch contact">pointer inputs</a> is at least 24 by 24 <a href="https://w3c.github.io/wcag/guidelines/22/#dfn-css-pixels" title="visual angle of about 0.0213 degrees">CSS pixels</a>, except where:</p>
    <ul>
      <li><strong>Spacing:</strong> Undersized targets (those less than 24 by 24 CSS pixels) are positioned so that if a 24 CSS pixel diameter circle is centered on the <a href="https://w3c.github.io/wcag/guidelines/22/#dfn-bounding-boxes" title="[New]">bounding box</a> of each, the circles do not intersect another target or the circle for another undersized target;</li>
      <li><strong>Equivalent:</strong> The function can be achieved through a different control on the same page that meets this criterion.</li>
      <li><strong>Inline:</strong> The target is in a sentence or its size is otherwise constrained by the line-height of non-target text;</li>
      <li><strong>User agent control:</strong> The size of the target is determined by the user agent and is not modified by the author;</li>
      <li><strong>Essential:</strong> A particular presentation of the target is <a href="https://w3c.github.io/wcag/guidelines/22/#dfn-essential" title="if removed, would fundamentally change the information or functionality of the content, and information and functionality cannot be achieved in another way that would conform">essential</a> or is legally required for the information being conveyed.</li>
    </ul>
    <footer><cite><a href="https://w3c.github.io/wcag/guidelines/22/#target-size-minimum">Success Criterion 2.5.8 Target Size (Minimum)</a>, W3C Editor's Draft 10 May 2023</cite></footer>
  </blockquote>

  <p>
    This language may change again before WCAG 2.2 is released in Q3 2023.
  </p>

</main>

<svg version="1.1" xmlns="http://www.w3.org/2000/svg" id="SVGsprites">
  <style>
    .l { fill: none; stroke-width: 30; stroke-miterlimit: 10; }
    .t { stroke: none; }
  </style>
  <defs>
    <g id="icon-sort" aria-labeledby="title-sort" aria-describedby="desc-sort" role="image">
      <title id="title-sort">Sort</title>
      <desc id="desc-sort"></desc>
      <path class="t" d="M20.4 233.7L212.5 41.6l192.1 192.1z"/>
      <path class="l" d="M414.4 223.1L212.5 21.2 10.6 223.1"/>
      <path class="t" d="M404.6 306L212.5 498.1 20.4 306z"/>
      <path class="l" d="M10.6 316.6l201.9 201.9 201.9-201.9"/>
    </g>
    <g id="icon-sort-asc" aria-labeledby="title-sort-asc" aria-describedby="desc-sort-asc" role="image">
      <title id="title-sort-asc">Sort Ascending</title>
      <desc id="desc-sort-asc"></desc>
      <path class="t" d="M20.4 233.7L212.5 41.6l192.1 192.1z"/>
      <path class="l" d="M414.4 223.1L212.5 21.2 10.6 223.1"/>
    </g>
    <g id="icon-sort-des" aria-labeledby="title-sort-des" aria-describedby="desc-sort-des" role="image">
      <title id="title-sort-des">Sort Descending</title>
      <desc id="desc-sort-des"></desc>
      <path class="t" d="M404.6 0L212.5 192.1 20.4 0z"/>
      <path  class="l" d="M10.6 10.6l201.9 201.9L414.4 10.6"/>
    </g>
  </defs>
</svg>

<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" id="Star">
  <style>
    #svg_2 {
      fill: currentColor;
    }
    @media screen and (-ms-high-contrast: active), screen and (forced-colors: active) {
      #svg_2 {
        fill: LinkText;
      }
    }
  </style>
  <defs>
    <g id="Star1">
      <path id="svg_2" d="m0,38l37,0l11,-38l11,38l37,0l-30,23l11,38l-30,-23l-30,23l11,-38l-30,-23l0,0z" stroke-width="0"></path>
    </g>
  </defs>
</svg>
              
            
!

CSS

              
                @font-face {
  font-family: "Atkinson-Hyperlegible";
  font-style: normal;
  font-weight: 400;
  src: local("Atkinson-Hyperlegible"), local("Atkinson-Hyperlegible-Regular"),
    url("https://assets.codepen.io/2729/Atkinson-Hyperlegible-Regular-102a.woff2")
      format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Atkinson-Hyperlegible";
  font-style: italic;
  font-weight: 400;
  src: local("Atkinson-Hyperlegible-Italic"),
    local("Atkinson-Hyperlegible-Italic"),
    url("https://assets.codepen.io/2729/Atkinson-Hyperlegible-Italic-102a.woff2")
      format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Atkinson-Hyperlegible";
  font-style: normal;
  font-weight: 700;
  src: local("Atkinson-Hyperlegible-Bold"), local("Atkinson-Hyperlegible-Bold"),
    url("https://assets.codepen.io/2729/Atkinson-Hyperlegible-Bold-102a.woff2")
      format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Atkinson-Hyperlegible";
  font-style: italic;
  font-weight: 700;
  src: local("Atkinson-Hyperlegible-BoldItalic"),
    local("Atkinson-Hyperlegible-BoldItalic"),
    url("https://assets.codepen.io/2729/Atkinson-Hyperlegible-BoldItalic-102a.woff2")
      format("woff2");
  font-display: swap;
}

body {
  font-family: "Atkinson-Hyperlegible", "Segoe UI", -apple-system,
    BlinkMacSystemFont, Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  line-height: 1.4;
  /*   line-height: 1.5; */
  /*   letter-spacing: 0.12em; */
  /*   word-spacing: 0.16em; */
/*   background-color: #eee;
  color: #000; */
}

main {
  max-width: 56em;
  margin: 0 auto;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h2,
h3 {
  margin-top: 3em;
}

pre {
  white-space: pre-wrap;
}

:focus {
  outline: 0.2em solid;
  outline-offset: 0.1em;
}

@keyframes Target {
  from {
    outline-offset: -0.25em;
    outline-width: 0.1em;
  }
  to {
    outline-offset: 2em;
    outline-color: transparent;
    outline-width: 1em;
  }
}

:target {
  outline-width: 0.2em;
  outline-style: solid;
}

@media screen and (prefers-reduced-motion: no-preference) {
  :target {
    outline-width: 0;
    animation: Target 1s ease-out 2;
  }
}

blockquote footer cite::before {
  content: "\2014 ";
  padding-right: 0.5em;
}

blockquote footer {
  padding-left: 6.5vw;
}

.booktrigger a {
  border: 0.1em solid;
  border-radius: 0.25em;
  display: inline-block;
  padding: 0.25em 0.5em;
}

.booktrigger a svg {
  margin-bottom: -0.4em;
}


/* Examples */

.b24px button {
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  appearance: none; /* WebKit */
}

.b24px-skew button {
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  transform: skew(15deg, 15deg);
  overflow: hidden;
  appearance: none; /* WebKit */
}

.b24px-circle button {
  width: 23px;
  height: 23px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid;
  overflow: hidden;
}

.b12px button {
  width: 12px;
  height: 12px;
  margin: 0 12px 0 0;
  padding: 0;
  overflow: hidden;
  appearance: none; /* WebKit */
}

.a18px a, .a18px-small a {
  width: 18px;
  margin: 0 6px 0 0;
}

.a18px a svg, .a18px-small a svg {
  width: 18px;
}

.a18px a:focus svg, .a18px a:hover svg, .a18px-small a:focus svg, .a18px-small a:hover svg {
  filter: drop-shadow(3px 3px 1px rgb(0,0,0,.5));
}

.b24pxtoolbar {
  display: flex;
  flex-wrap: wrap;
  width: 188px;
  border-left: 1px solid #666;
  border-top: 1px solid #666;
}

.b24pxtoolbar button {
  flex: 1 1 24px;
  padding: .25em;
  border: none;
  border-right: 1px solid #666;
  border-bottom: 1px solid #666;
  background-color: #eee;
  color: #000
}

.b24pxtoolbar-small button {
  flex: 1 1 10px;
  padding: revert;
}

.b24pxtoolbar button:focus, .b24pxtoolbar button:hover {
  background-color: #333;
  color: #fff;
}

.b20px button {
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  appearance: none; /* WebKit */
}

.b24px-more-skew button {
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  transform: skew(-45deg, 0deg);
  overflow: hidden;
  appearance: none; /* WebKit */
}

.b22px-circle button {
  width: 21px;
  height: 21px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid;
  overflow: hidden;
}

.b12px-small button {
  width: 12px;
  height: 12px;
  margin: 0 4px 0 0;
  padding: 0;
  overflow: hidden;
  appearance: none; /* WebKit */
}

.a18px-small a {
  margin: 0 3px 0 0;
}

/* Disclosures */

/* All the CSS needed to make disclosures work */

button[aria-expanded="false"] + div {
  display: none;
}

/* END All the CSS needed to make disclosures work */

button[aria-expanded] {
  border: .1em solid #ccc;
  padding: .5em 1em .5em .5em;
  font: inherit;
  background-color: #eee;
  border-radius: .5em .5em 0 0;
}

button[aria-expanded] span {
  display: inline-block;
  font-size: 60%;
  color: #000;
  background-color: #00f;
  padding: 0.3em 0.2em 0 0.2em;
  border: 0.2em solid #00f;
  border-radius: 50%;
  line-height: 1;
  text-align: center;
  text-indent: 0;
  transform: rotate(270deg);
}

button[aria-expanded] svg {
  width: 1.25em;
  height: 1.25em;
  fill: #fff;
  transition: transform 0.25s ease-in;
  transform-origin: center 45%;
}

button[aria-expanded]:hover,
button[aria-expanded]:focus {
  background-color: #666;
  color: #fff;
  outline: none;
  border-color: #666;
}

button[aria-expanded]:hover span,
button[aria-expanded]:focus span {
  background-color: #fff;
  outline: none;
}

button[aria-expanded]:hover svg,
button[aria-expanded]:focus svg {
  fill: #00f;
}

/* Lean on programmatic state for styling */
button[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.disclosee {
  padding: 0;
  border: .1em solid #ddd;
  background-color: #fff;
  margin-top: -.1em;
  position: absolute;
}

.disclosee ul, .disclosee li {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.disclosee li a {
  display: block;
  padding: .25em .5em;
  text-decoration: none;
  line-height: 1;
}

.disclosee li a:focus, .disclosee li a:hover {
  background-color: #666;
  color: #fff;
}

#Disclosed02 li a {
  padding: .2em .5em;
}

/* Tables */

:root {
  --text-color: #333;
  --bg-color: #fff;
  --col-header-color: #333;
  --col-header-hover-color: #fff;
}

@media screen and (-ms-high-contrast: active),
  screen and (forced-colors: active) {
   :root {
    --col-header-color: ButtonText;
    --col-header-hover-color: WindowText;
    --col-header-hover-color: CanvasText;
  } 
}

#SVGsprites {
  display: none;
}

table {
  margin: 1em 0 0 0;
  border-collapse: collapse;
  border: 0.1em solid rgba(0, 0, 0, 0.1);
}

caption {
  text-align: left;
  font-style: italic;
  padding: 0.25em 0.5em 0.5em 0.5em;
}

th,
td {
  padding: 0.25em 0.5em 0.25em 1em;
  vertical-align: text-top;
  text-align: left;
  text-indent: -0.5em;
}

td.sorted {
  background-color: rgba(255, 255, 0, 0.15);
}

th {
  vertical-align: bottom;
  background-color: rgba(0, 0, 0, 0.1);
}

tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.05);
}

tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.05);
}

td:nth-of-type(2) {
  font-style: italic;
}

th:nth-of-type(3),
td:nth-of-type(3) {
  text-align: right;
}

th:nth-of-type(6),
td:nth-of-type(6) {
  text-align: center;
  min-width: 4em;
}

th {
  white-space: nowrap;
}

th > button {
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  border-radius: 50%;
  display: inline-block;
  width: 16px;
  height: 16px;
}

th > button:focus,
th > button:hover {
  background-color: #666;
  outline: none;
}

th > button svg.sort {
  fill: var(--text-color);
  stroke: var(--text-color);
  max-width: .65em;
  max-height: 1.2em;
  width: 8px;
  height: auto;
  transform: translate(0, -.25em);
}

th > button:last-child {
  margin-left: 3px;
}

th > button:focus svg.sort, th > button:hover svg.sort {
  stroke: var(--col-header-hover-color);
  fill: var(--col-header-hover-color);
}

/* Method to visually hide something but still */
/* make it available to screen readers */
.visually-hidden {
  position: absolute;
  top: auto;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  white-space: nowrap;
}
              
            
!

JS

              
                function toggleDisclosure(btnID) {
  // Get the button that triggered this
  var theButton = document.getElementById(btnID);
  // If the button is not expanded...
  if (theButton.getAttribute("aria-expanded") == "false") {
    // Now set the button to expanded
    theButton.setAttribute("aria-expanded", "true");
  // Otherwise button is not expanded...
  } else {
    // Now set the button to collapsed
    theButton.setAttribute("aria-expanded", "false");
  }
}

function toggleSort(btnID, colID, colNum, regionID) {
  var theButton = document.getElementById(btnID);
  var theColumn = document.getElementById(colID);
  var liveRegion = document.getElementById(regionID);
  var sortedTDs = document.querySelectorAll(
    "td:nth-child(" + colNum + "), *[role=cell]:nth-child(" + colNum + ")"
  );
  var currSort = theColumn.getAttribute("aria-sort");
  if (currSort == "descending") {
    clearSorts();
    theColumn.setAttribute("aria-sort", "ascending");
    liveRegion.innerHTML = "sorted up";
  } else {
    clearSorts();
    theColumn.setAttribute("aria-sort", "descending");
    liveRegion.innerHTML = "sorted down";
  }
  for (var i = 0; i < sortedTDs.length; i++) {
    sortedTDs[i].classList.add("sorted");
  }
  setTimeout(function () {
    liveRegion.innerHTML = "";
  }, 1000);
  // for the fake live region to see the output
  document.getElementById("FakeLiveRegion").innerHTML = liveRegion.innerHTML;
}

function clearSorts() {
  var thSort = document.querySelectorAll("*[aria-sort]");
  var tdSort = document.querySelectorAll(".sorted");
  var thBtn = document.querySelectorAll(
    "th > button, *[role=columnheader] > button"
  );
  for (var i = 0; i < thSort.length; i++) {
    thSort[i].removeAttribute("aria-sort");
  }
  for (var i = 0; i < tdSort.length; i++) {
    tdSort[i].classList.remove("sorted");
  }
}
              
            
!
999px

Console