summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-speech/speak-as/speak-as-literal-punctuation-001-manual.html
blob: 8d67b9ba30576b22a0f8a77b55d9ec17234374f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
    <head>
        <title>CSS Test: speak-as literal-punctuation</title>
        <link rel="author" title="Alexander Lehner" href="mailto:alexlehner86@gmail.com">
        <link rel="help" href="https://www.w3.org/TR/css-speech-1/#speaking-props-speak-as">
        <meta
            name="flags"
            content="speech"
        >
        <meta
            name="assert"
            content="The literal-punctuation value of speak-as makes screen readers announce punctuation."
        >
        <style>
            p.speak-as-literal-punctuation { speak-as: literal-punctuation; }
        </style>
    </head>
    <body>
        <h1>Test Case</h1>
        <p>
            The punctuation in the following text should be announced by screen readers:
        </p>
        <p class="speak-as-literal-punctuation">class MyClass { myProperty = 1; }</p>
        <h2>Instructions for Manual Test</h2>
        <ol>
            <li>Open the website in your browser.</li>
            <li>
                Activate your screen reader (NVDA, VoiceOver, TalkBack etc.).
            </li>
            <li>
                Set verbosity preferences of the screen reader to default setting, which ignores most punctuation (e.g. comma, period, parentheses).
            </li>
            <li>In the screen reader's browse mode, navigate to the paragraph following the first heading.</li>
            <li>
                The screen reader should still announce all punctuation (parentheses, semicolon etc.) in the paragraph.
            </li>
        </ol>
    </body>
</html>