Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Accessibility] - Test for elements not in viewport contained within content-visibility: auto CSS property #50004

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 2 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
39 changes: 39 additions & 0 deletions accname/name/comp_content_visibility.tentative.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!doctype html>
<html>
<head>
<title>Name Comp: content visibility (Tentative)</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/wai-aria/scripts/aria-utils.js"></script>
</head>
<body>

<h1>Testing accessibility of content-visibility: auto</h1>

<h2>Accname</h2>

<div style="height:5px; overflow:scroll;">
<div>
<p>Some content</p>
<p>Some content</p>
<p>Some content</p>
<p>Some content</p>
<p>Some content</p>
</div>
<div style="content-visibility:auto">
<h2 class="ex" data-expectedlabel="SPEC_AMBIGUOUS_LOG_VALUE" data-expectedrole="SPEC_AMBIGUOUS_LOG_VALUE" data-testname="HTML heading element under content-visibility auto condition">test heading</h2>
<button class="ex" data-expectedlabel="SPEC_AMBIGUOUS_LOG_VALUE" data-expectedrole="SPEC_AMBIGUOUS_LOG_VALUE" data-testname="HTML button element under content-visibility auto condition">test button</button>
<a class="ex" href="#" data-expectedlabel="SPEC_AMBIGUOUS_LOG_VALUE" data-expectedrole="SPEC_AMBIGUOUS_LOG_VALUE" data-testname="HTML link element under content-visibility auto condition">test link</a>
</div>
</div>

<script>
AriaUtils.verifyRolesBySelector(".ex");
AriaUtils.verifyLabelsBySelector(".ex");
giacomo-petri marked this conversation as resolved.
Show resolved Hide resolved
</script>

</body>
</html>
Loading