Skip to content

Commit 06ab967

Browse files
committed
Demonstrate using the translate attribute
1 parent 48ad572 commit 06ab967

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

docs/index.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,18 @@ <h3 id="subtitle__content">Content</h3>
141141
<p>
142142
Yes, but was it <bdi>possible</bdi> to <bdo>quietly</bdo> sleep <ruby>through</ruby> that <rt>furniture-rattling</rt> noise? <rp>True</rp>, he <span>had not slept</span> peacefully, but <del>probably</del> all the more <ins>deeply</ins> because of that. What should he do now? The next train went at seven; if he were to catch that he would have to rush like mad and the collection of samples was still not packed, and he did not at all feel particularly fresh and lively.
143143
</p>
144-
<h4>Notes:</h4>
145144
<p>
146-
<small><code>&lt;mark&gt;</code>, <code>&lt;ins&gt;</code>, <code>&lt;del&gt;</code>, and <code>&lt;s&gt;</code> elements are not announced by screen readers. Consider <a rel="external noopener" href="https://developer.paciellogroup.com/blog/2017/12/short-note-on-making-your-mark-more-accessible/">using CSS to indicate their presence</a>.</small>
147-
</p>
145+
The French phrase, <cite lang="fr" translate="no">C'est le ton qui fait la chanson</cite>, might apply here.
146+
</p>
147+
<h4>Notes:</h4>
148+
<ul>
149+
<li>
150+
<small><code>&lt;mark&gt;</code>, <code>&lt;ins&gt;</code>, <code>&lt;del&gt;</code>, and <code>&lt;s&gt;</code> elements are not announced by screen readers. Consider <a rel="external noopener" href="https://developer.paciellogroup.com/blog/2017/12/short-note-on-making-your-mark-more-accessible/">using CSS to indicate their presence</a>.</small>
151+
</li>
152+
<li>
153+
<small>Use the <code>translate</code> attribute to control <a rel="external noopener" href="https://html.spec.whatwg.org/multipage/dom.html#the-translate-attribute">automatic translation by the browser</a>.</small>
154+
</li>
155+
</ul>
148156
</div><!-- End of #subsection__content -->
149157
<div id="subsection__links" aria-labelledby="subtitle__links"><!-- Start of #subsection__links -->
150158
<h3 id="subtitle__links">Links</h3>

partials/section.text-level.hbs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,18 @@
1717
<p>
1818
Yes, but was it <bdi>possible</bdi> to <bdo>quietly</bdo> sleep <ruby>through</ruby> that <rt>furniture-rattling</rt> noise? <rp>True</rp>, he <span>had not slept</span> peacefully, but <del>probably</del> all the more <ins>deeply</ins> because of that. What should he do now? The next train went at seven; if he were to catch that he would have to rush like mad and the collection of samples was still not packed, and he did not at all feel particularly fresh and lively.
1919
</p>
20-
<h4>Notes:</h4>
2120
<p>
22-
<small><code>&lt;mark&gt;</code>, <code>&lt;ins&gt;</code>, <code>&lt;del&gt;</code>, and <code>&lt;s&gt;</code> elements are not announced by screen readers. Consider <a rel="external noopener" href="https://developer.paciellogroup.com/blog/2017/12/short-note-on-making-your-mark-more-accessible/">using CSS to indicate their presence</a>.</small>
23-
</p>
21+
The French phrase, <cite lang="fr" translate="no">C'est le ton qui fait la chanson</cite>, might apply here.
22+
</p>
23+
<h4>Notes:</h4>
24+
<ul>
25+
<li>
26+
<small><code>&lt;mark&gt;</code>, <code>&lt;ins&gt;</code>, <code>&lt;del&gt;</code>, and <code>&lt;s&gt;</code> elements are not announced by screen readers. Consider <a rel="external noopener" href="https://developer.paciellogroup.com/blog/2017/12/short-note-on-making-your-mark-more-accessible/">using CSS to indicate their presence</a>.</small>
27+
</li>
28+
<li>
29+
<small>Use the <code>translate</code> attribute to control <a rel="external noopener" href="https://html.spec.whatwg.org/multipage/dom.html#the-translate-attribute">automatic translation by the browser</a>.</small>
30+
</li>
31+
</ul>
2432
</div><!-- End of #subsection__content -->
2533
<div id="subsection__links" aria-labelledby="subtitle__links"><!-- Start of #subsection__links -->
2634
<h3 id="subtitle__links">Links</h3>

0 commit comments

Comments
 (0)