mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1335734 - Make sure ARIA role 'directory' exposes the READONLY state so it doesn't get treated as a widget, r=surkov
MozReview-Commit-ID: 9J90gANe9Ib --HG-- extra : rebase_source : bdfa84fa07864453ee7e1b4559b90e7d196b7da0
This commit is contained in:
parent
66ebeced1b
commit
e37a92d3e7
@ -184,7 +184,7 @@ static const nsRoleMapEntry sWAIRoleMaps[] =
|
||||
eNoAction,
|
||||
eNoLiveAttr,
|
||||
eList,
|
||||
kNoReqStates
|
||||
states::READONLY
|
||||
},
|
||||
{ // document
|
||||
&nsGkAtoms::document,
|
||||
|
@ -179,6 +179,9 @@
|
||||
testStates("aria_treegrid_readonly_cell_inherited", STATE_READONLY, 0,
|
||||
0, EXT_STATE_EDITABLE);
|
||||
|
||||
// aria-readonly on directory
|
||||
testStates("aria_directory", STATE_READONLY);
|
||||
|
||||
// aria-selectable
|
||||
testStates("aria_selectable_listitem", STATE_SELECTABLE | STATE_SELECTED);
|
||||
|
||||
@ -625,5 +628,8 @@
|
||||
<div role="row"><div role="gridcell">h</div></div>
|
||||
</div>
|
||||
|
||||
<!-- Test that directory is readonly -->
|
||||
<div id="aria_directory" role="directory"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user