1 <script src=
"../resources/js-test.js"></script>
2 <script src=
"../resources/accessibility-helper.js"></script>
3 <div>These lists have a static text role because they have a presentation role.
</div>
4 <ul role=
"presentation">
5 <li>Presentation Item
1</li>
6 <li>Presentation Item
2</li>
9 <div>The first list item has a listitem role even if ul has a presentation role because it has an explicit role.
</div>
10 <ul role=
"presentation">
11 <li role=
"listitem">Explicit Item
1</li>
12 <li>Implicit Item
2</li>
15 <div>These two tables have static text roles because they have presentation roles.
</div>
16 <table role=
"presentation">
19 <th>Presentation th
</th>
24 <td>Presentation th
</td>
29 <table role=
"presentation">
31 <th>Presentation th
</th>
35 <div>The
"Presentation th" has a static text role because it has a presentation role.
</div>
37 <tr role=
"presentation">
38 <th>Presentation th
</th>
45 <div>The row for
"Explicit th" has a row role even if table has a presentation role because it has an explicit role.
</div>
46 <table role=
"presentation">
55 <div>The menu items except button have a static text role because it has a presentation role and is disabled.
<br>
56 Button has a button role because it has an explicit role.
</div>
57 <menu type=
"context" role=
"presentation">
58 <input type=
"checkbox" name=
"vehicle" value=
"Bike" disabled
> I have a bike
59 <input type=
"button" role=
"button" value=
"Click me" disabled
>
60 <input type=
"radio" name=
"gender" value=
"male" disabled
> Male
61 <input type=
"radio" name=
"gender" value=
"female" disabled
> Female
64 <div>The option A has a static text role because it has a presentation role and is disabled.
<br>
65 The option B has option role because it has an explicit role.
</div>
66 <select multiple
role=
"presentation" disabled
>
67 <option value=
"A" disabled
>A
</option>
68 <option value=
"B" disabled
role=
"option">B
</option>
72 <p id=
"description"></p>
73 <div id=
"console"></div>
75 description("This test make sure that presentation role is inherited to required owned elements.");
77 if (window
.testRunner
)
78 testRunner
.dumpAsText();
79 if (window
.accessibilityController
) {
80 buildAccessibilityTree(accessibilityController
.focusedElement
, 0, 1);