Difference between revisions of "Accessible name calc"

From Level Access Web Labs
Jump to navigation Jump to search
Line 62: Line 62:
 
   <p>has an accessible name of "Massive storms sweeps across nation click here"
 
   <p>has an accessible name of "Massive storms sweeps across nation click here"
 
</div>
 
</div>
 +
 +
<h2>Link with aria-labelledby that contains some content with aria-hidden</h2>
 +
<div>
 +
  <a href="#" aria-labelledby="d5a"> click here </a>
 +
  <p id="d5a">Storm <span aria-hidden="true">sweeps across nation</span></p>
 +
</div>
 +
 +
<h2>Link with aria-labelledby that contains sll content with aria-hidden</h2>
 +
<div>
 +
  <a href="#" aria-labelledby="d6a"> click here </a>
 +
  <p id="d6a"><span aria-hidden="true"> storm sweeps across nation</span></p>
 +
</div>
 +
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 15:26, 29 November 2016

Image with aria-label and alt

hello

having an accessible name of “here”.

Image with space for aria-label and alt

hello

having an accessible name of “ ”.

Image with null for aria-label and alt

hello

having an accessible name of “hello”.

Image with aria-labelledby with multiple id refs/h2>
Hello Here

Link with pseudo content

click here

Link with only pseudo content

Link referencing aria-labelledby with pseudo content

click here
pool

Link referencing aria-labelledby with display none including children

click here

has an accessible name of "pool location"

Link referencing aria-labelledby with visibility hidden including children

click here

has an accessible name of "pool"

Link referencing parent with aria-labelledby

Massive storm sweeps across nation click here

has an accessible name of "Massive storms sweeps across nation click here"

Link with aria-labelledby that contains some content with aria-hidden

click here

Storm

Link with aria-labelledby that contains sll content with aria-hidden

click here