Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ 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

Save Automatically?

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

              
                <header>
	<h1>Named details element test case</h1>
	<p>Published: March 22, 2022</p>
	<p>Last Updated: June 17, 2022</p>
</header>


<details aria-label="foo">
	<summary>my test</summary>
	my content
</details>

<div class=results>
	<div class=result-tables>
 <table>
  <caption>Named details results</caption>
  <tr>
    <td></td>
    <th>Narrator + Edge</th>

    <th>macOS VoiceOver + Edge/Chrome</th>
    <th>macOS VoiceOver + Firefox</th>
    <th>macOS VoiceOver + Safari</th>

    <th>iOS VoiceOver + Safari</th>

    <th>NVDA + Edge/Chrome</th>
    <th>NVDA + Firefox</th>

    <th>JAWS + Edge/Chrome</th>
    <th>JAWS + Firefox</th>

    <th>TalkBack + Edge/Chrome</th>
    <th>TalkBack + Firefox</th>
  </tr>
		<tr>
    <th>Summary role announced?</th>
    <!-- narrator -->
    <td>"Disclosure triangle"</td>
    
    <!-- mosvo -->
    <td>"Disclosure triangle, group"</td>
    <td>"Summary, group"</td>
    <td>"Summary, group"</td>
    
				<td class=concern>No <small>(same as if details unnamed)</small></td>
    
    <!-- nvda -->
    <td>"Button"</td>
    <td>"Button"</td>
    
    <!-- jaws -->
    <td>"Button"</td>
    <td>"Button"</td>
    
    <!-- tb -->
    <td>"Disclosure triangle"</td>
    <td class=concern>On initial focus, no. After toggle, yes "Button". On re-navigation to control, no. Disclosure triangle focused w/no role. 'trigger' text focused with no role. <small>(same as if details unnamed)</small></td>
  </tr>
		<tr>
    <th>details role/name announced?</th>
    <!-- narrator -->
    <td>Yes. "details" role</td>
    
    <!-- mosvo -->
    <td>Yes. "details" role</td>
    <td>Yes. "details" role</td>
    <td>Yes. "details" role</td>
    
				<td class=concern>No <small>(same as if details unnamed)</small></td>
    
    <!-- nvda -->
    <td>Yes. "group" role</td>
    <td>Yes. "group" role</td>
    
    <!-- jaws -->
    <td>Yes. "group" role</td>
    <td>Yes. "group" role</td>
    
    <!-- tb -->
    <td class=concern>No. <p>Note: a div with role=group and aria-label would announce the aria-label for the group, but not the group role with default settings.</td>
    <td class=concern>No <small>(same as if details unnamed)</small></td>
  </tr>
		<tr>
    <th>Expand/Collapse state exposed?</th>
    <!-- narrator -->
    <td>Yes</td>
    
    <!-- mosvo -->
    <td>Yes</td>
    <td class=concern>On initial focus, Yes.
On toggle, No. Instead direction of "triangle" is announced (accName update).
					<small>(same as if details unnamed)</small></td>
    <td>Yes</td>
    
				<td class=concern>No <small>(same as if details unnamed)</small></td>
    
    <!-- nvda -->
    <td>Yes</td>
    <td>Yes</td>
    
    <!-- jaws -->
    <td>Yes</td>
    <td>Yes</td>
    
    <!-- tb -->
    <td>Yes</td>
    <td class=concern>On initial focus, no. After toggle, yes. On re-navigation to control disclosure triangle and 'trigger' text separately focusable with no state annoumcent. On toggle, collapsed/expanded announced.<small>(same as if details unnamed)</small></td>
  </tr>
	</table>
 </div>
</div>

              
            
!

CSS

              
                body {
  font-family: arial;
  margin: 1.25em;
  background: #fafafa;
  padding: .55em;
}

header {
  margin: 0 0 .75em;
  padding-bottom: .75em;
  border-bottom: 1px solid #aaa;
  
  h1 {
    margin: 0;
  }
  
  :last-child {
    margin-bottom: 0;
  }
}

summary h3 {
  display: inline-block;
  margin: 0;
}

h2 {
  margin-top: 1.5em;
  margin-bottom: .75em;
}

.tests {
  max-width: 400px;
}

caption { text-align: left; font-size: 1.25em; margin-top: 1em;}

.results {
  
  table {
    width: 100%;
    min-width: 1100px;
    
  }
  th {
    word-break: break-word;
    font-size: .82em;
  }
  th, td:not(:empty) {
    border: 1px solid;
    text-align: left;
    padding: .25em;
    min-width: 140px;
  }
}

.result-tables {
  overflow: auto;
}

li p {
  margin: .5em 0;
}

.concern {
  background: lightyellow;
  font-weight: bold;
}

              
            
!

JS

              
                
              
            
!
999px

Console