Skip to content

Commit 21205c5

Browse files
committed
Add a11y normalize in new docs
1 parent 07de316 commit 21205c5

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

docs/CSS10c-custom_fonts.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,9 @@ Then:
6767
document.documentElement.style.setProperty("--USER__fontWeight", "575");
6868
document.documentElement.style.setProperty("--USER__fontWidth", "125%");
6969
```
70+
71+
And for accessibility purposes, you can normalize text, which will remove all italics, font variants such as small capitals, subscript, and superscript formatting:
72+
73+
```javascript
74+
document.documentElement.style.setProperty("--USER__a11yNormalize", "readium-a11y-on");
75+
```

docs/ReadiumCSS_docs.epub

103 Bytes
Binary file not shown.

docs/ReadiumCSS_docs/OEBPS/Text/Section-010c.xhtml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878

7979
<pre><code>document.documentElement.style.setProperty("--USER__fontWeight", "575");
8080
document.documentElement.style.setProperty("--USER__fontWidth", "125%");</code></pre>
81+
82+
<p>And for accessibility purposes, you can normalize text, which will remove all italics, font variants such as small capitals, subscript, and superscript formatting:</p>
83+
84+
<pre><code>document.documentElement.style.setProperty("--USER__a11yNormalize", "readium-a11y-on");</code></pre>
8185
</section>
8286
</section>
8387
</body>

0 commit comments

Comments
 (0)