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

              
                <h1>Naming lists tests</h1>
<p>Published: 06-01-2022</p>

<h2>List and list item named by aria-label</h2>
<p>List element and first/second list items have <code>aria-label</code>, "name", "aria" and "aria 2", respectively</p>

<ul aria-label="name">
 <li aria-label=aria>text <a href="#">go</a></li>
	<li aria-label="aria 2">text</li>
	<li>...</li>
  <!-- ... -->
</ul>

<table>
	<tr>
		<td></td>
		<th>Firefox</th>
		<th>Chrome</th>
		<th>Edge</th>
		<th>Safari</th>
	</tr>
	<tr>
		<th>Narrator</th>
		<td><ul><li>Name of list read</li>
			<li>Name of list item read</li>
			<li>List item text still accessible (depending on navigation method)</li></ul>
		<td><ul><li>Name of list read</li>
			<li>Name of list item read</li>
			<li>List item text still accessible (depending on navigation method)</li></ul>
		</td>
		<td><ul><li>Name of list read</li>
			<li>Name of list item read</li>
			<li>List item text still accessible (depending on navigation method)</li></ul></td>
		<td>n/a</td>
	</tr>
	<tr>
		<th>NVDA</th>
		<td><ul><li>Name of list read</li>
			<li><strong>Name of list items ignored.</strong></li></ul>
		<td><ul><li>Name of list read</li>
			<li><strong>Name of list items ignored.</strong></li></ul></td>
		<td><ul><li>Name of list read</li>
			<li><strong>Name of list items ignored.</strong></li></ul></td>
		<td>n/a</td>
	</tr>
	<tr>
		<th>JAWS</th>
		<td><ul><li>Name of list read</li><li><strong>Name of list items ignored.</strong></li></ul></td>
		<td><ul><li>Name of list read</li><li><strong>Name of list items ignored.</strong></li></ul></td>
		<td><ul><li>Name of list read</li><li><strong>Name of list items ignored.</strong></li></ul></td>
		<td>n/a</td>
	</tr>
	<tr>
		<th>VO</th>
		<td><ul>
				<li>Name of list read</li>
			<li><strong>list item converted to 'group' and name read</strong></li>
			<li>list item text accessible within 'group'</li>
			</ul>
		</td>
		<td>
			<ul>
				<li>Name of list read</li>
			<li><strong>list item converted to 'group' and name read</strong></li>
			<li>list item text accessible within 'group'</li>
			</ul>
		</td>
		<td><ul>
				<li>Name of list read</li>
			<li><strong>list item converted to 'group' and name read</strong></li>
			<li>list item text accessible within 'group'</li>
			</ul>
		<td>
			<ul>
				<li>Name of list read</li>
			<li><strong>list item converted to 'group' and name read</strong></li>
			<li>list item text accessible within 'group'</li>
			</ul>
			<hr>
			<strong>iOS: not supported</strong>
		</td>
	</tr>
	<tr>
		<th>TalkBack</th>
		<td><ul><li>Name of list read</li>
<li>
			<strong>static content of list item is not accessible</strong> unless another accessible node is within the list item.  e.g., if static text alone, then only the name of the list item is read, and TalkBack will not interact with the subtree of the named list item.</li></ul>
		</td>
		<td><strong>not supported</strong></td>
		<td><strong>not supported</strong></td>
		<td>n/a</td>
	</tr>
</table>

<h2>List and listitem with 'title' attribute</h2>
<p>List has <code>title=html</code>.  List item 1 has subtree text and <code>title=title</code>.  Second list item has no subtree and <code>title=test</code>
<ul title="html">
  <li title=title>word</li>
	<li title=test></li>
	<li>...</li>
  <!-- ... -->
</ul>

<table>
	<tr>
		<td></td>
		<th>Firefox</th>
		<th>Chrome</th>
		<th>Edge</th>
		<th>Safari</th>
	</tr>
	<tr>
		<th>Narrator</th>
		<td>
			<ul><li><strong>Name of list not read</strong></li>
				<li><strong>List item name / description not read.</strong>
			</ul>
		</td>
		<td><ul><li>Name of list read</li>
				<li>Name of list item read (title unexpectedly becomes name)</li>
			<li>List item text still accessible (depending on navigation method)</li>
			</ul>
		</td>
		<td><ul><li>Name of list read</li>
				<li>Name of list item read (title unexpectedly becomes name)</li>
			<li>List item text still accessible (depending on navigation method)</li>
			</ul></td>
		<td>n/a</td>
	</tr>
	<tr>
		<th>NVDA</th>
		<td><ul><li>Name of list read</li>
			<li><strong>Name / description of list items ignored</strong></li>
			</ul>
		</td>
		<td>
			<ul><li><strong>Name of list not read</strong></li>
				<li><strong>list item name / description not read</strong></li></ul></td>
		<td><ul><li><strong>Name of list not read</strong></li>
				<li><strong>list item name / description not read</strong></li></ul>
		<td>n/a</td>
	</tr>
	<tr>
		<th>JAWS</th>
		<td><ul><li>Name of list read</li>
			<li><strong>Name / description of list items ignored</strong></li>
			</ul></td>
		<td><ul><li>Name of list read</li>
			<li><strong>Name / description of list items ignored</strong></li>
			</ul></td>
		<td><ul><li>Name of list read</li>
			<li><strong>Name / description of list items ignored</strong></li>
			</ul></td>
		<td>n/a</td>
	</tr>
	<tr>
		<th>VO</th>
		<td><ul><li>Name of list read</li>
			<li><strong>Name / description of list items ignored</strong></li>
			</ul></td>
		<td>
			<ul>
				<li>Name of list read</li>
				<li>
					list item name read and announced as group (unexpected behavior).</li>
				<li>list item text still accessible within 'group'.</li>
			</ul>
		</td>
		<td>
			<ul>
				<li>Name of list read</li>
				<li>
					list item name read and announced as group (unexpected behavior).</li>
				<li>list item text still accessible within 'group'.</li>
			</ul>
		</td>
		<td>
			<ul>
				<li>Name of list read</li>
				<li>
					list item name read and announced as group (unexpected behavior).</li>
				<li>list item text still accessible within 'group'.</li>
			</ul>
			<hr>
			iOS: not supported
		</td>
	</tr>
	<tr>
		<th>TalkBack</th>
		<td>
			<ul><li>Name of list read</li>
				<li>title becomes description for li with text</li>
				<li>title remains description for li which only contains "bullet"</li>
			</ul>
		</td>
		<td><strong>not supported</strong></td>
		<td><strong>not supported</strong></td>
		<td>n/a</td>
	</tr>
</table>

<p>Note that Narrator with Chrome announces list items as heading level one...</p>
              
            
!

CSS

              
                body {
	padding: 1.325em;
}
table { width: 100%; }
th {
	text-align: left;
	width: 20%;
}
td:not(:empty),th {
	border: 1px solid;
	padding: .25em;
}

table ul {
	padding: 0 0 0 1em;
}
              
            
!

JS

              
                /*
Test matrix includes latest versions of iOS/macOS/Win10/Android12 and available browsers and screen readers on each platform at the time of publishing.
*/
              
            
!
999px

Console