Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions test/checks/shared/presentational-role.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ describe('presentational-role', () => {
assert.deepEqual(checkContext._data.messageKey, 'both');
});

it('does not trigger conflict resolution for a global aria attribute set via element internals', () => {
// internals do not participate in role conflict resolution; no browser
// supports it yet (see issue #5162), so the presentational role sticks
const vNode = queryFixture(
'<testutils-element id="target" no-role role="none" with-aria-live="assertive">x</testutils-element>'
);

assert.isTrue(checkEvaluate.call(checkContext, null, null, vNode));
assert.deepEqual(checkContext._data.role, 'none');
});

it('should return false for iframe element with role=none and title', () => {
const vNode = queryFixture(
'<iframe id="target" role="none" title=" "></iframe>'
Expand Down
Loading