Skip to content

Commit

Permalink
Add XHTML, ARIA, SVG, MathML tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 18, 2018
1 parent a0e8fa4 commit 3b02fd1
Show file tree
Hide file tree
Showing 13 changed files with 2,746 additions and 2 deletions.
3 changes: 3 additions & 0 deletions test/fixtures/aria/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"fragment": true
}
29 changes: 29 additions & 0 deletions test/fixtures/aria/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<form>
<!--See: http://heydonworks.com/practical_aria_examples/#input-tooltip-->
<style>
fieldset > div { position: relative }

[role="tooltip"] {
display: none;
padding: 0.25em;
background-color: black;
color: white;
z-index: 1;
}

input:focus + [role="tooltip"] { display: block; position: absolute }
</style>
<fieldset>
<legend>Login</legend>
<div>
<label for="username">Username</label>
<input id="username" aria-describedby="username-tip" required>
<div role="tooltip" id="username-tip">Your username is your email address</div>
</div>
<div>
<label for="password">Password</label>
<input id="password" aria-describedby="password-tip" required>
<div role="tooltip" id="password-tip">Was emailed to you when you signed up</div>
</div>
</fieldset>
</form>
Loading

0 comments on commit 3b02fd1

Please sign in to comment.