Skip to content

Commit c5262ae

Browse files
authored
Merge branch 'gh-pages' into issue-361-aria-checked
2 parents 6ea1c5b + 367b8bd commit c5262ae

File tree

3 files changed

+81
-5
lines changed

3 files changed

+81
-5
lines changed

index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3759,10 +3759,7 @@

37593759
ul>
37603760
td>
37613761
<td>
3762-
[=Flow content=] but with no <a>maina> element,
3763-
[=heading content=],
3764-
[=sectioning content=],
3765-
or <a data-cite="html/sections.html#sectioning-root">sectioning rootsa> descendants.
3762+
[=Phrasing content=]
37663763
td>
37673764
tr>
37683765
<tr>

tests/aria-hidden-picture.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@

Tests:

7070
<p>Authors MAY use the <code>aria-hiddencode> attribute on the <code>picturecode> element.p>
7171
<div class="testcase">
7272
<picture aria-hidden=true>
73-
<img src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C.jpg">
73+
<img src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width=200>
7474
picture>
7575

7676

tests/button-combobox.html

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title >ARIA in HTML - Test Casestitle>
6+
<link rel="stylesheet" href="../results/styles.css">
7+
<style>
8+
body{
9+
font-size: 1em;
10+
}
11+
.flex {
12+
display: flex;
13+
flex-wrap: wrap;
14+
align-items: stretch;
15+
}
16+
.widgetDemo {
17+
border: 1px solid #EEE;
18+
margin: .5em;
19+
padding: 5px;
20+
flex: 1 0 0;
21+
min-width: calc(300px - 1em);
22+
}
23+
.widgetDemo p {
24+
color: #696969;
25+
font-size: 1.125em;
26+
padding: 0;
27+
margin: .75em 0;
28+
}
29+
.testcase {
30+
margin: 2em 0;
31+
}
32+
h3{
33+
margin: .5em 0;
34+
border: 0;
35+
padding: 0;
36+
}
37+
h2 {font-size:2em}
38+
.testcase > * {
39+
border: 1px dotted;
40+
padding: .25em;
41+
}
42+
style>
43+
head>
44+
<body>
45+
46+
<header>
47+
<h1>ARIA in HTML - test case for <code>role=comboboxcode> on <code>buttoncode>h1>
48+
<p>last updated 15 January 2022p>
49+
header>
50+
<main>
51+
<h2>Tests:h2>
52+
<p>Authors MAY use <code>role=comboboxcode> on a <code>buttoncode> element, so long as other required attributes of the combobox role are also specified.p>
53+
54+
<div class="flex">
55+
<div class="widgetDemo">
56+
<div class="testcase">
57+
<label for=b>name 1label>
58+
<button id=b role=combobox>test 1button>
59+
div>
60+
61+
<p><strong>Expected result:strong>
62+
This test fails because the button element has a role=combobox, but no other required attributes (aria-controls and aria-expanded).p>
63+
div>
64+
65+
<div class="widgetDemo">
66+
<div class="testcase">
67+
<label id=t2 for=c>name 2label>
68+
<button id=c role=combobox aria-haspopup=listbox aria-activedescendant aria-autocomplete=list aria-controls=f aria-expanded=false>test 2button>
69+
<div role=listbox id=f hidden aria-labelledby=t2><div role=option aria-selected=false>option1div>div>
70+
div>
71+
72+
<p><strong>Expected result:strong>
73+
This test passes. The button element has a role=combobox,
74+
and has the required aria-controls and aria-expanded attributes.p>
75+
div>
76+
div>
77+
main>
78+
body>
79+
html>

0 commit comments

Comments
 (0)