We have a problem with duplication when choosing content containing a screen reader, for example:
https://jsfiddle.net/dowbuabr/1/
<div class="content">
<div class="screen-reader">2 squared</div>
<div class="display" aria-hidden="true">2^2</div>
</div>
.screen-reader {
position: absolute;
clip: rect(1px,1px,1px,1px);
padding: 0;
border: 0;
height: 1px;
width: 1px;
overflow: hidden;
}
Using aria-hidden
, we can tell screen readers that the second block of content is for display and should not be read aloud. However, highlighting the entire block and using a tool such as the Google Chrome team, both blocks say.
![Highlighting the content block actually selects both pieces, not just the one that doesn't specify aria-hidden is true](https://fooobar.com//img/f34cfbd73cbdb6055a33a21663b4886e.png)
, , ? user-select: none
, , , , UX, . . , "", , , .
https://jsfiddle.net/dowbuabr/2/
![Good result but no highlighting on the content block](https://fooobar.com//img/265edb87ff97e0edfcc27ca82ad42b5e.png)